aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-07 14:14:20 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-03-07 14:14:20 +0100
commit4f5361179ca6129df5dd0ffacad91f252d6871b8 (patch)
tree769907fc3e947b59ccf952160a17d37fc8a01e5c /include
parent02f5d70e400f882c9da25f5b9e0cd1f083cbdf2f (diff)
Add u8has(p s)fx
Diffstat (limited to 'include')
-rw-r--r--include/mbstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbstring.h b/include/mbstring.h
index 15250ff..e23a00b 100644
--- a/include/mbstring.h
+++ b/include/mbstring.h
@@ -34,6 +34,8 @@ struct u8view {
#define PRIsU8 ".*s"
#define U8_PRI_ARGS(sv) ((int)(sv).len), ((sv).p)
+bool u8haspfx(const char8_t *, size_t, const char8_t *, size_t);
+bool u8hassfx(const char8_t *, size_t, const char8_t *, size_t);
char8_t *u8chk(const char8_t *, size_t);
char8_t *u8chr(const char8_t *, rune, size_t);
char8_t *u8rchr(const char8_t *, rune, size_t);