From 0c0dc7a2b51354e35c9f5185aee1c000a52b5e72 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 30 Mar 2004 20:12:37 +0000 Subject: Fix index sorting so that it collates in a sensible order. [originally from svn r4004] --- ustring.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ustring.c') 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) -- cgit v1.1