summaryrefslogtreecommitdiffhomepage
path: root/include/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-12 18:26:16 +0100
committerTyge Løvset <[email protected]>2023-01-12 18:26:16 +0100
commit350bb65a2f68b14ce16a21ea8670cc087e39f4ce (patch)
tree4c92b37b05aa5c1a3ccb695466fa75dbd938bf17 /include/stc
parent891aebc0a971df8e57618c16ed214d982072cbd3 (diff)
downloadSTC-modified-350bb65a2f68b14ce16a21ea8670cc087e39f4ce.tar.gz
STC-modified-350bb65a2f68b14ce16a21ea8670cc087e39f4ce.zip
docs and utf8 updates.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/utf8.h4
1 files changed, 1 insertions, 3 deletions
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);