diff options
author | fab <fabrice.leal.ch@gmail.com> | 2018-12-09 22:23:41 +0000 |
---|---|---|
committer | fab <fabrice.leal.ch@gmail.com> | 2018-12-09 22:23:41 +0000 |
commit | 1dd8c0c06f27343f86fd16b2c52b872871d0ab10 (patch) | |
tree | 974f38abfae501074565370500ce032edf4a71ba /src | |
parent | f062b43f613ce0e6596efc35fc6e888c9a1f5495 (diff) |
fix isxdigit: is probably helpful to keep it only to ascii chars. migrate islower, isupper, isalpha, isdigit, isblank, isspace, isxdigit, isprint
Diffstat (limited to 'src')
-rw-r--r-- | src/c/urweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 1394e068..e458a706 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -4473,7 +4473,7 @@ uw_Basis_bool uw_Basis_isupper(uw_context ctx, uw_Basis_char c) { uw_Basis_bool uw_Basis_isxdigit(uw_context ctx, uw_Basis_char c) { (void)ctx; - return !!u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT); + return !!(c <= 0x7f && u_isxdigit(c)); } uw_Basis_char uw_Basis_tolower(uw_context ctx, uw_Basis_char c) { |