From 9a06a1caececf1ea3136c3ec80e0ecadb6b29f53 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 23 Feb 2022 09:35:52 +0100 Subject: utf8_isspace missed a few codepoints --- src/casefold.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/casefold.py b/src/casefold.py index 17b0b99e..de08837e 100644 --- a/src/casefold.py +++ b/src/casefold.py @@ -181,8 +181,8 @@ bool utf8_islower(uint32_t c) { } bool utf8_isspace(uint32_t c) { - static uint16_t t[] = {0x09, 0x0D, 0x20, 0x85, 0xA0, 0x1680, - 0x2028, 0x2029, 0x202F, 0x205F, 0x3000}; + static uint16_t t[] = {0x20, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x85, 0xA0, + 0x1680, 0x2028, 0x2029, 0x202F, 0x205F, 0x3000}; for (int i=0; i= 0x2000) & (c <= 0x200A); @@ -195,8 +195,8 @@ bool utf8_isdigit(uint32_t c) { } bool utf8_isxdigit(uint32_t c) { - static uint16_t t[] = {0x30, 0x39, 0x41, 0x46, 0x61, 0x66, - 0xFF10, 0xFF19, 0xFF21, 0xFF26, 0xFF41, 0xFF46}; + static uint16_t t[] = {0x30, 0x39, 0x41, 0x46, 0x61, 0x66, 0xFF10, + 0xFF19, 0xFF21, 0xFF26, 0xFF41, 0xFF46}; for (int i=1; i= t[i - 1]; return false; -- cgit v1.2.3