diff options
| author | Mattias Andrée <m@maandree.se> | 2026-01-26 20:59:14 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-01-26 20:59:14 +0100 |
| commit | 48870de574bc6712a07ccb519459bf933336d3e1 (patch) | |
| tree | 79ba9c2eeb407c98910b6ccd0c2a50ad9912595e /libcharconv_latin.c | |
| parent | Add counting rods (diff) | |
| download | charconv-48870de574bc6712a07ccb519459bf933336d3e1.tar.gz charconv-48870de574bc6712a07ccb519459bf933336d3e1.tar.bz2 charconv-48870de574bc6712a07ccb519459bf933336d3e1.tar.xz | |
Add mayan
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 5e050f0..acb002c 100644 --- a/libcharconv_latin.c +++ b/libcharconv_latin.c @@ -616,6 +616,17 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz c2 = '0'; goto conv2; + } else if (UINT32_C(0x1D2E0) <= c && c <= UINT32_C(0x1D2E9)) { + /* mayan */ + c -= (uint_least32_t)UINT32_C(0x1D2E0) - (uint_least32_t)'0'; + goto conv; + } else if (UINT32_C(0x1D2EA) <= c && c <= UINT32_C(0x1D2F3)) { + /* mayan */ + c -= (uint_least32_t)UINT32_C(0x1D2EA) - (uint_least32_t)'0'; + c1 = '1'; + c2 = (char)c; + goto conv2; + } else { use_switch: switch (c) { |
