diff options
Diffstat (limited to 'py/unicode.c')
-rw-r--r-- | py/unicode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/unicode.c b/py/unicode.c index d69b6f56f..369240e23 100644 --- a/py/unicode.c +++ b/py/unicode.c @@ -140,6 +140,10 @@ bool unichar_isident(unichar c) { return c < 128 && ((attr[c] & (FL_ALPHA | FL_DIGIT)) != 0 || c == '_'); } +bool unichar_isalnum(unichar c) { + return c < 128 && ((attr[c] & (FL_ALPHA | FL_DIGIT)) != 0); +} + bool unichar_isupper(unichar c) { return c < 128 && (attr[c] & FL_UPPER) != 0; } |