diff options
| author | Mattias Andrée <m@maandree.se> | 2026-01-25 17:00:55 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-01-25 17:00:55 +0100 |
| commit | 35ad65b0276cfca80aea68122122b78f8f3777c2 (patch) | |
| tree | a0f254ebbbf679c85d72d91dbe285341664894ee /libcharconv_latin.c | |
| parent | Add some symbol transformations (diff) | |
| download | charconv-35ad65b0276cfca80aea68122122b78f8f3777c2.tar.gz charconv-35ad65b0276cfca80aea68122122b78f8f3777c2.tar.bz2 charconv-35ad65b0276cfca80aea68122122b78f8f3777c2.tar.xz | |
Add sora sompeng
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcharconv_latin.c')
| -rw-r--r-- | libcharconv_latin.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |
