summaryrefslogtreecommitdiffstats
path: root/libc/bionic
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-05-02 16:25:59 -0700
committerElliott Hughes <enh@google.com>2014-05-02 16:25:59 -0700
commitc42f5c6fe6f52c9a7082d2a43d0af42326a9c6d1 (patch)
treee605f7e3284831567cb78df47134903c0ae22896 /libc/bionic
parentd6ff0dcef670abd070efc6ff75bfbf265128eb2e (diff)
downloadbionic-c42f5c6fe6f52c9a7082d2a43d0af42326a9c6d1.zip
bionic-c42f5c6fe6f52c9a7082d2a43d0af42326a9c6d1.tar.gz
bionic-c42f5c6fe6f52c9a7082d2a43d0af42326a9c6d1.tar.bz2
Fix iswctype.
This doesn't matter until we fix the other isw* functions, of course. Change-Id: I0baed1c933259cf22444da391bc4a56446d66773
Diffstat (limited to 'libc/bionic')
-rw-r--r--libc/bionic/wctype.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/libc/bionic/wctype.cpp b/libc/bionic/wctype.cpp
index 33cacd1..673402d 100644
--- a/libc/bionic/wctype.cpp
+++ b/libc/bionic/wctype.cpp
@@ -31,7 +31,7 @@
#include <string.h>
#include <wchar.h>
-// TODO: these only work for the ASCII range; rewrite to dlsym icu4c?
+// TODO: these only work for the ASCII range; rewrite to dlsym icu4c? http://b/14499654
int iswalnum(wint_t wc) { return isalnum(wc); }
int iswalpha(wint_t wc) { return isalpha(wc); }
@@ -48,18 +48,18 @@ int iswxdigit(wint_t wc) { return isxdigit(wc); }
int iswctype(wint_t wc, wctype_t char_class) {
switch (char_class) {
- case WC_TYPE_ALNUM: return isalnum(wc);
- case WC_TYPE_ALPHA: return isalpha(wc);
- case WC_TYPE_BLANK: return isblank(wc);
- case WC_TYPE_CNTRL: return iscntrl(wc);
- case WC_TYPE_DIGIT: return isdigit(wc);
- case WC_TYPE_GRAPH: return isgraph(wc);
- case WC_TYPE_LOWER: return islower(wc);
- case WC_TYPE_PRINT: return isprint(wc);
- case WC_TYPE_PUNCT: return ispunct(wc);
- case WC_TYPE_SPACE: return isspace(wc);
- case WC_TYPE_UPPER: return isupper(wc);
- case WC_TYPE_XDIGIT: return isxdigit(wc);
+ case WC_TYPE_ALNUM: return iswalnum(wc);
+ case WC_TYPE_ALPHA: return iswalpha(wc);
+ case WC_TYPE_BLANK: return iswblank(wc);
+ case WC_TYPE_CNTRL: return iswcntrl(wc);
+ case WC_TYPE_DIGIT: return iswdigit(wc);
+ case WC_TYPE_GRAPH: return iswgraph(wc);
+ case WC_TYPE_LOWER: return iswlower(wc);
+ case WC_TYPE_PRINT: return iswprint(wc);
+ case WC_TYPE_PUNCT: return iswpunct(wc);
+ case WC_TYPE_SPACE: return iswspace(wc);
+ case WC_TYPE_UPPER: return iswupper(wc);
+ case WC_TYPE_XDIGIT: return iswxdigit(wc);
default: return 0;
}
}