aboutsummaryrefslogtreecommitdiffstats
path: root/libcharconv_latin.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-01-26 20:59:14 +0100
committerMattias Andrée <m@maandree.se>2026-01-26 20:59:14 +0100
commit48870de574bc6712a07ccb519459bf933336d3e1 (patch)
tree79ba9c2eeb407c98910b6ccd0c2a50ad9912595e /libcharconv_latin.c
parentAdd counting rods (diff)
downloadcharconv-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 '')
-rw-r--r--libcharconv_latin.c11
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) {