summaryrefslogtreecommitdiff
path: root/ustring.c
diff options
context:
space:
mode:
Diffstat (limited to 'ustring.c')
-rw-r--r--ustring.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ustring.c b/ustring.c
index 1573a19..0741dcf 100644
--- a/ustring.c
+++ b/ustring.c
@@ -73,6 +73,11 @@ wchar_t utolower(wchar_t c) {
return c;
}
+int uisalpha(wchar_t c) {
+ /* FIXME: this doesn't even come close */
+ return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
+}
+
int ustricmp(wchar_t *lhs, wchar_t *rhs) {
wchar_t lc, rc;
while ((lc = utolower(*lhs)) == (rc = utolower(*rhs)) && lc && rc)