X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/d7482997dd1ca71b70df43c15dd5956f435a1a7e..780f45d46e5b1c840453ec46779bb6b9bd478cc4:/ustring.c?ds=inline 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)