~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
\lcont and \quote were being confused by whitespace (in particular,
[sgt/halibut]
/
ustring.c
diff --git
a/ustring.c
b/ustring.c
index
1573a19
..
0741dcf
100644
(file)
--- a/
ustring.c
+++ b/
ustring.c
@@
-73,6
+73,11
@@
wchar_t utolower(wchar_t c) {
return 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)
int ustricmp(wchar_t *lhs, wchar_t *rhs) {
wchar_t lc, rc;
while ((lc = utolower(*lhs)) == (rc = utolower(*rhs)) && lc && rc)