summaryrefslogtreecommitdiff
path: root/string32.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-31 19:09:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-31 19:09:50 -0500
commit68b3e3928e1bd05ebbb56810ae8b7a68ff5f12b0 (patch)
tree72832015fedc7f8230b345e36aa9b0b5efa7cf46 /string32.c
parent58444144fae39d38c155d868cf3aebb8e4ef8dba (diff)
started syntax higlighting (still need to add state to each line)
Diffstat (limited to 'string32.c')
-rw-r--r--string32.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/string32.c b/string32.c
index fc6117b..381bf15 100644
--- a/string32.c
+++ b/string32.c
@@ -110,3 +110,16 @@ size_t str32_remove_all_instances_of_char(String32 *s, char32_t c) {
s->len = out;
return ndeleted;
}
+
+bool is32_space(char32_t c) {
+ return c <= WINT_MAX && iswspace((wint_t)c);
+}
+
+bool is32_alpha(char32_t c) {
+ return c <= WINT_MAX && iswalpha((wint_t)c);
+}
+
+bool is32_alnum(char32_t c) {
+ return c <= WINT_MAX && iswalnum((wint_t)c);
+}
+