summaryrefslogtreecommitdiff
path: root/string32.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-31 20:57:59 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-31 20:57:59 -0500
commitdba51f5c1b7ac895239d2909358b323a92b77644 (patch)
tree0a2ab02c1f6add2a5046b61004f6c0fc0977afdd /string32.c
parent442e0b92a09689cd75e2d20608572a279bef5390 (diff)
C syntax higlighting working
Diffstat (limited to 'string32.c')
-rw-r--r--string32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/string32.c b/string32.c
index 03f96c4..387d15c 100644
--- a/string32.c
+++ b/string32.c
@@ -123,6 +123,10 @@ bool is32_alnum(char32_t c) {
return c <= WINT_MAX && iswalnum((wint_t)c);
}
+bool is32_digit(char32_t c) {
+ return c <= WINT_MAX && iswdigit((wint_t)c);
+}
+
// could this character appear in a C-style identifier?
bool is32_ident(char32_t c) {
return c <= WINT_MAX && (iswalnum((wint_t)c) || c == '_');