From 2707fbda25ae9554280111ea2f5999e2feac4b20 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 25 Jan 2026 17:23:41 +0100 Subject: Add tally marks and ideographic tally marks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcharconv_latin.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libcharconv_latin.c') 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; -- cgit v1.2.3-70-g09d2