aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/misc.c b/misc.c
index ea89e94e..7e33e65a 100644
--- a/misc.c
+++ b/misc.c
@@ -1,17 +1,16 @@
#include "misc.h"
-
-#include <wctype.h>
+#include "char32.h"
bool
-isword(wchar_t wc, bool spaces_only, const wchar_t *delimiters)
+isword(char32_t wc, bool spaces_only, const char32_t *delimiters)
{
if (spaces_only)
- return iswgraph(wc);
+ return isc32graph(wc);
- if (wcschr(delimiters, wc) != NULL)
+ if (c32chr(delimiters, wc) != NULL)
return false;
- return iswgraph(wc);
+ return isc32graph(wc);
}
void