aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-21 23:23:46 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-21 23:23:46 +0200
commit691f98c494777f0380094b9b8f60d61f936b640b (patch)
treebb96ffa4151ff3ef8cd64b6177a3159c1f77196e /include
parenta13daaddc5e77ab028553caa92e1bcb0206e892f (diff)
Support word-segmentation
Diffstat (limited to 'include')
-rw-r--r--include/unicode/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/unicode/string.h b/include/unicode/string.h
index e989380..9ac029a 100644
--- a/include/unicode/string.h
+++ b/include/unicode/string.h
@@ -18,7 +18,10 @@ enum [[clang::flag_enum]] caseflags {
/* clang-format on */
[[nodiscard]] size_t u8gcnt(const char8_t *, size_t);
+[[nodiscard]] size_t u8wcnt(const char8_t *, size_t);
+
size_t u8gnext(struct u8view *, const char8_t **, size_t *);
+size_t u8wnext(struct u8view *, const char8_t **, size_t *);
#define mlib_warn_trunc nodiscard("don’t forget to check for truncation")
[[mlib_warn_trunc]] size_t u8casefold(char8_t *restrict, size_t,