diff options
| author | Mattias Andrée <m@maandree.se> | 2026-01-25 17:23:41 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-01-25 17:23:41 +0100 |
| commit | 2707fbda25ae9554280111ea2f5999e2feac4b20 (patch) | |
| tree | fa85500503c700e78d6d27c1cfa5d6f8312a409d /libcharconv_latin.c | |
| parent | Add sora sompeng (diff) | |
| download | charconv-2707fbda25ae9554280111ea2f5999e2feac4b20.tar.gz charconv-2707fbda25ae9554280111ea2f5999e2feac4b20.tar.bz2 charconv-2707fbda25ae9554280111ea2f5999e2feac4b20.tar.xz | |
Add tally marks and ideographic tally marks
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcharconv_latin.c')
| -rw-r--r-- | libcharconv_latin.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libcharconv_latin.c b/libcharconv_latin.c index dabad30..1961b18 100644 --- a/libcharconv_latin.c +++ b/libcharconv_latin.c @@ -658,6 +658,17 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz case UINT32_C(0x2E35): c = UINT32_C(0x003B); goto conv; case UINT32_C(0x1F12F): c1 = '('; c2 = 'C'; c3 = ')'; goto conv3; + /* tally marks */ + case UINT32_C(0x13D77): c1 = '1'; goto conv1; + case UINT32_C(0x13D78): c1 = '5'; goto conv1; + + /* ideographic tally marks */ + case UINT32_C(0x13D72): c1 = '1'; goto conv1; + case UINT32_C(0x13D73): c1 = '2'; goto conv1; + case UINT32_C(0x13D74): c1 = '3'; goto conv1; + case UINT32_C(0x13D75): c1 = '4'; goto conv1; + case UINT32_C(0x13D76): c1 = '5'; goto conv1; + default: no_match: *n += clen; |
