wchar_t utolower(wchar_t c) {
if (c == L'\0')
return c; /* this property needed by ustricmp */
wchar_t utolower(wchar_t c) {
if (c == L'\0')
return c; /* this property needed by ustricmp */
- /* FIXME: this doesn't even come close */
+#ifdef HAS_TOWLOWER
+ return towlower(c);
+#else
if (c >= 'A' && c <= 'Z')
c += 'a'-'A';
return c;
if (c >= 'A' && c <= 'Z')
c += 'a'-'A';
return c;
}
int uisalpha(wchar_t c) {
}
int uisalpha(wchar_t c) {
- /* FIXME: this doesn't even come close */
+#ifdef HAS_ISWALPHA
+ return iswalpha(c);
+#else
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
}
int ustricmp(wchar_t *lhs, wchar_t *rhs) {
}
int ustricmp(wchar_t *lhs, wchar_t *rhs) {