summaryrefslogtreecommitdiff
path: root/ustring.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-03-30 20:12:37 +0000
committerSimon Tatham <anakin@pobox.com>2004-03-30 20:12:37 +0000
commit0c0dc7a2b51354e35c9f5185aee1c000a52b5e72 (patch)
tree24b7d07d4da1602e9dafce79998e196ad850aee0 /ustring.c
parent4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1 (diff)
downloadhalibut-0c0dc7a2b51354e35c9f5185aee1c000a52b5e72.zip
halibut-0c0dc7a2b51354e35c9f5185aee1c000a52b5e72.tar.gz
halibut-0c0dc7a2b51354e35c9f5185aee1c000a52b5e72.tar.bz2
halibut-0c0dc7a2b51354e35c9f5185aee1c000a52b5e72.tar.xz
Fix index sorting so that it collates in a sensible order.
[originally from svn r4004]
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)