diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 02:21:49 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-04 02:21:49 +0200 |
commit | 8b923ba5e5bb37ea26350b4c1c688b8697706609 (patch) | |
tree | f0a128daf3b5a115d0b1ca9b5fccd9914386381e /include | |
parent | e5a4bfe05bea551fc17048548695810a1ca48f5c (diff) |
Add u8split()
Diffstat (limited to 'include')
-rw-r--r-- | include/mbstring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbstring.h b/include/mbstring.h index 06e32ae..d908284 100644 --- a/include/mbstring.h +++ b/include/mbstring.h @@ -52,6 +52,8 @@ int u8prev(rune *, const char8_t **, const char8_t *); [[nodiscard]] size_t u8len(const char8_t *, size_t); +struct u8view u8split(const char8_t **, size_t *, rune); + #define u8chk(s, n) _MLIB_Q_PTR(char8_t, u8chk, (s), (s), (n)) #define u8chr(s, n, ch) _MLIB_Q_PTR(char8_t, u8chr, (s), (s), (n), (ch)) #define u8rchr(s, n, ch) _MLIB_Q_PTR(char8_t, u8rchr, (s), (s), (n), (ch)) |