[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Here is the patch for uisspace to support also nonascii whitespace
characters.
Peter Cech
--- unicode.c.old Mon Mar 13 01:23:50 2000
+++ unicode.c Tue Mar 14 16:40:06 2000
@@ -1663,7 +1663,9 @@
int uisspace(int c)
{
return ((c == ' ') || (c == '\t') || (c == '\r') ||
- (c == '\n') || (c == '\f') || (c == '\v'));
+ (c == '\n') || (c == '\f') || (c == '\v') ||
+ (c == 0x1680) || ((c >= 0x2000) && (c <= 0x200A)) ||
+ (c == 0x2028) || (c == 0x202f) || (c == 0x3000));
}