diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-02-05 16:15:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-02-05 16:15:49 +0000 |
| commit | 52f1f44897fa0025cc0482a5dd348c6aa0ec1a2d (patch) | |
| tree | 19612f8a63c25f66baf8eacad28931f2d302765f /misc.c | |
| parent | Merge branch 'config-no-null-strings-in-printf' (diff) | |
| parent | char32: inline wcs*() wrappers (diff) | |
Merge branch 'fcft-3'
Diffstat (limited to 'misc.c')
| -rw-r--r-- | misc.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |
