]> Kevux Git Server - fll/commitdiff
Bugfix: Problems exposed by unit tests in f_utf.
authorKevin Day <thekevinday@gmail.com>
Sun, 12 Jun 2022 03:45:03 +0000 (22:45 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 12 Jun 2022 03:45:03 +0000 (22:45 -0500)
Only UTF-8 symbols are tested.

level_0/f_utf/c/private-utf_symbol.c
level_0/f_utf/c/utf/is.c
level_0/f_utf/c/utf/is_character.c

index 3de39ed30ead68ea5717dcec73ae3b49531d6ee6..e2e87bba60f85461b29c26ef942b1ba8e91d9e57 100644 (file)
@@ -626,8 +626,13 @@ extern "C" {
           return F_true;
         }
 
-        // Halfwidth and Fullwidth Forms: U+FFE9 to U+FFEC.
-        if (character >= 0xefbfa900 && character <= 0xefbfac00) {
+        // Halfwidth and Fullwidth Forms: U+FFE8 to U+FFEE.
+        if (character >= 0xefbfa800 && character <= 0xefbfae00) {
+          return F_true;
+        }
+
+        // Specials: U+FFFC to U+FFFD.
+        if (character == 0xefbfbc00 || character == 0xefbfbd00) {
           return F_true;
         }
       }
index adb37664f00e267d0c38610e35182b7cc80abb3d..a543c0a9ff8f2587af517ace75a795e9dc2d58dd 100644 (file)
@@ -668,7 +668,7 @@ extern "C" {
     }
 
     // ASCII: U+003C ('<') to U+003E ('>').
-    if (character[0] > 0x3c && character[0] < 0x3e) {
+    if (character[0] >= 0x3c && character[0] <= 0x3e) {
       return F_true;
     }
 
index 44e9c1b167fc619fdff5b5df44b63f1e4aab861c..ba722d39d8b71ac021c11f233dc604fa8b3131ce 100644 (file)
@@ -408,7 +408,7 @@ extern "C" {
     }
 
     // ASCII: U+003C ('<') to U+003E ('>').
-    if (character > 0x3c000000 && character < 0x3e000000) {
+    if (character >= 0x3c000000 && character <= 0x3e000000) {
       return F_true;
     }