diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-30 20:12:37 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-30 20:12:37 +0000 |
| commit | 0c0dc7a2b51354e35c9f5185aee1c000a52b5e72 (patch) | |
| tree | 24b7d07d4da1602e9dafce79998e196ad850aee0 /ustring.c | |
| parent | 4b18ed86b5c3b5a4d9af1a94f1c413cb9b4f85e1 (diff) | |
| download | halibut-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |