From 35ad65b0276cfca80aea68122122b78f8f3777c2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Jan 2026 17:00:55 +0100 Subject: Add sora sompeng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcharconv_latin.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcharconv_latin.c') diff --git a/libcharconv_latin.c b/libcharconv_latin.c index e984f51..dabad30 100644 --- a/libcharconv_latin.c +++ b/libcharconv_latin.c @@ -434,6 +434,15 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz c1 = (i & 32u) ? '2' : '1'; goto conv6; + } else if (UINT32_C(0x110D0) <= c && c <= UINT32_C(0x110E8)) { + /* sora sompeng */ + c = (uint_least32_t)"stbcdgmGlnvpyrhkjYaEiuoeM"[c - UINT32_C(0x110D0)]; + goto conv; + } else if (UINT32_C(0x110F0) <= c && c <= UINT32_C(0x110F9)) { + /* sora sompeng */ + c -= (uint_least32_t)UINT32_C(0x110F0) - (uint_least32_t)'0'; + goto conv; + } else { use_switch: switch (c) { -- cgit v1.2.3-70-g09d2