]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/ctype/iswblank.c (iswblank): Remove Unicode characters
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 17 Feb 2010 09:14:35 +0000 (09:14 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 17 Feb 2010 09:14:35 +0000 (09:14 +0000)
U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
to explain how to generate from Unicode data file.
* libc/ctype/iswspace.c (iswspace): Ditto.

newlib/ChangeLog
newlib/libc/ctype/iswblank.c
newlib/libc/ctype/iswspace.c

index 7729b2c35f0c690f7792297c34aa90c2112047fa..f2554c3c4a208c61335e7e3128eb98900b675fbd 100644 (file)
@@ -1,3 +1,10 @@
+2010-02-16  Corinna Vinschen  <corinna@vinschen.de>
+
+       * libc/ctype/iswblank.c (iswblank): Remove Unicode characters
+       U+00A0 and U+200B.  Add Unicode character U+180E.  Add comment
+       to explain how to generate from Unicode data file.
+       * libc/ctype/iswspace.c (iswspace): Ditto.
+
 2010-02-15  Corinna Vinschen  <corinna@vinschen.de>
 
        * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Apply previous patch here
index 2ac907f17b3da7d63dbc2de46c3788d25170b782..7ca2b62996f162adb0f596f8698a93481d2a81da 100644 (file)
@@ -67,10 +67,13 @@ _DEFUN(iswblank,(c), wint_t c)
 {
 #ifdef _MB_CAPABLE
   c = _jp2uc (c);
+  /* Based on Unicode 5.2.  Control char 09, plus all characters
+     from general category "Zs", which are not marked as decomposition
+     type "noBreak". */
   return (c == 0x0009 || c == 0x0020 ||
-         c == 0x00A0 || c == 0x1680 ||
+         c == 0x1680 || c == 0x180e ||
          (c >= 0x2000 && c <= 0x2006) ||
-         (c >= 0x2008 && c <= 0x200b) ||
+         (c >= 0x2008 && c <= 0x200a) ||
          c == 0x205f || c == 0x3000);
 #else
   return (c < 0x100 ? isblank (c) : 0);
index 3245813f1b9388bbcc529082d6c2da0c47f40f49..e738cd61dee903821ca42ddfb1ec1321d8921399 100644 (file)
@@ -67,10 +67,13 @@ _DEFUN(iswspace,(c), wint_t c)
 {
 #ifdef _MB_CAPABLE
   c = _jp2uc (c);
+  /* Based on Unicode 5.2.  Control chars 09-0D, plus all characters
+     from general category "Zs", which are not marked as decomposition
+     type "noBreak". */
   return ((c >= 0x0009 && c <= 0x000d) || c == 0x0020 ||
-         c == 0x00A0 || c == 0x1680 ||
+         c == 0x1680 || c == 0x180e ||
          (c >= 0x2000 && c <= 0x2006) ||
-         (c >= 0x2008 && c <= 0x200b) ||
+         (c >= 0x2008 && c <= 0x200a) ||
          c == 0x2028 || c == 0x2029 ||
          c == 0x205f || c == 0x3000);
 #else
This page took 0.054713 seconds and 5 git commands to generate.