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_transposed.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libcharconv_transposed.c') diff --git a/libcharconv_transposed.c b/libcharconv_transposed.c index af2a835..e73dcbc 100644 --- a/libcharconv_transposed.c +++ b/libcharconv_transposed.c @@ -22,13 +22,7 @@ libcharconv_transposed(const char *s, size_t slen, size_t *n, uint_least32_t *cp continue; } - if (UINT32_C(0x1F030) <= c && c <= UINT32_C(0x1F061)) { - c += 0x32u; - goto conv; - } else if (UINT32_C(0x1F062) <= c && c <= UINT32_C(0x1F093)) { - c -= 0x32u; - goto conv; - } + PLAIN_RANGE_SWAP(0x1F030, 0x1F061, 0x1F062, 0x1F093); *n += clen; s = &s[clen]; -- cgit v1.2.3-70-g09d2