From 350bb65a2f68b14ce16a21ea8670cc087e39f4ce Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 12 Jan 2023 18:26:16 +0100 Subject: docs and utf8 updates. --- include/stc/utf8.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/stc/utf8.h b/include/stc/utf8.h index 001f4191..f30e76ac 100644 --- a/include/stc/utf8.h +++ b/include/stc/utf8.h @@ -22,6 +22,7 @@ extern uint32_t utf8_casefold(uint32_t c); extern uint32_t utf8_tolower(uint32_t c); extern uint32_t utf8_toupper(uint32_t c); extern bool utf8_iscased(uint32_t c); +extern bool utf8_isword(uint32_t c); extern bool utf8_valid_n(const char* s, size_t nbytes); extern int utf8_icmp_sv(csview s1, csview s2); extern unsigned utf8_encode(char *out, uint32_t c); @@ -38,9 +39,6 @@ STC_INLINE bool utf8_isalnum(uint32_t c) { return utf8_isalpha(c) || utf8_isgroup(U8G_Nd, c); } -STC_INLINE bool utf8_isword(uint32_t c) - { return utf8_isalnum(c) || utf8_isgroup(U8G_Pc, c); } - STC_INLINE bool utf8_isblank(uint32_t c) { if (c < 128) return (c == ' ') | (c == '\t'); return utf8_isgroup(U8G_Zs, c); -- cgit v1.2.3