From 40bf70fb8f23e5ff7212b568c69e0725372e5b57 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 28 Jan 2026 22:03:48 +0100 Subject: Clean up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcharconv_buginese.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'libcharconv_buginese.c') diff --git a/libcharconv_buginese.c b/libcharconv_buginese.c index 311ab4c..16317c5 100644 --- a/libcharconv_buginese.c +++ b/libcharconv_buginese.c @@ -8,30 +8,10 @@ libcharconv_buginese(const char *s, size_t slen, size_t *n, uint_least32_t *cp, uint_least32_t c, c2; *n = 0; for (; slen--; s++) { + PLAIN_SELECT("kgGKpbmMtdnRcjYCyrlvs", 0x1A00); + PLAIN_SINGLE('h', 0x1A16); switch (s[0]) { - case 'k': c = UINT32_C(0x1A00); goto conv; - case 'g': c = UINT32_C(0x1A01); goto conv; - case 'G': c = UINT32_C(0x1A02); goto conv; - case 'K': c = UINT32_C(0x1A03); goto conv; - case 'p': c = UINT32_C(0x1A04); goto conv; - case 'b': c = UINT32_C(0x1A05); goto conv; - case 'm': c = UINT32_C(0x1A06); goto conv; - case 'M': c = UINT32_C(0x1A07); goto conv; - case 't': c = UINT32_C(0x1A08); goto conv; - case 'd': c = UINT32_C(0x1A09); goto conv; - case 'n': c = UINT32_C(0x1A0A); goto conv; - case 'R': c = UINT32_C(0x1A0B); goto conv; - case 'c': c = UINT32_C(0x1A0C); goto conv; - case 'j': c = UINT32_C(0x1A0D); goto conv; - case 'Y': c = UINT32_C(0x1A0E); goto conv; - case 'C': c = UINT32_C(0x1A0F); goto conv; - case 'y': c = UINT32_C(0x1A10); goto conv; - case 'r': c = UINT32_C(0x1A11); goto conv; - case 'l': c = UINT32_C(0x1A12); goto conv; - case 'v': c = UINT32_C(0x1A13); goto conv; - case 's': c = UINT32_C(0x1A14); goto conv; case 'a': c = UINT32_C(0x1A15); goto conv1; - case 'h': c = UINT32_C(0x1A16); goto conv; case 'i': c = UINT32_C(0x1A17); goto conv_vowel; case 'u': c = UINT32_C(0x1A18); goto conv_vowel; case 'e': c = UINT32_C(0x1A19); goto conv_vowel; -- cgit v1.2.3-70-g09d2