commit bea716ac3293d8b50576f6d6fa31f2857e12782f
parent 12c31f9cde28c0ffe986dfa3972a6c598ae46dfb
Author: bakkeby <bakkeby@gmail.com>
Date: Fri, 12 Aug 2022 16:17:06 +0200
[libgrapheme] Change example code to use grapheme_next_character_break_utf8 rather than grapheme_next_character_break
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs.suckless.org/libgrapheme/index.md b/libs.suckless.org/libgrapheme/index.md
@@ -81,7 +81,7 @@ into its user-perceived characters:
printf("Input: \"%s\"\n", s);
for (off = 0; s[off] != '\0'; off += ret) {
- ret = grapheme_next_character_break(s + off, SIZE_MAX);
+ ret = grapheme_next_character_break_utf8(s + off, SIZE_MAX);
printf("%2zu bytes | %.*s\n", ret, (int)ret, s + off, ret);
}