[wiki] [sites] [libgrapheme] Change example code to use grapheme_next_character_break_utf8 rather than grapheme_next_character_break || bakkeby

From: <git_AT_suckless.org>
Date: Fri, 12 Aug 2022 16:17:12 +0200

commit bea716ac3293d8b50576f6d6fa31f2857e12782f
Author: bakkeby <bakkeby_AT_gmail.com>
Date: Fri Aug 12 16:17:06 2022 +0200

    [libgrapheme] Change example code to use grapheme_next_character_break_utf8 rather than grapheme_next_character_break

diff --git a/libs.suckless.org/libgrapheme/index.md b/libs.suckless.org/libgrapheme/index.md
index e0b5a76b..b26d3cb3 100644
--- a/libs.suckless.org/libgrapheme/index.md
+++ b/libs.suckless.org/libgrapheme/index.md
_AT_@ -81,7 +81,7 @@ into its user-perceived characters:
                 printf("Input: \"%s\"
", s);
         
                 for (off = 0; s[off] != '- ret = grapheme_next_character_break(s + off, SIZE_MAX);
+ ret = grapheme_next_character_break_utf8(s + off, SIZE_MAX);
                         printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
                 }
         
Received on Fri Aug 12 2022 - 16:17:12 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 12 2022 - 16:24:50 CEST