[wiki] [sites] libgrapheme - Proper newlines in code || Laslo Hunhold
commit 04ea68c362646efcbe743c614664729bd295be5a
Author: Laslo Hunhold <dev_AT_frign.de>
Date: Thu Dec 23 10:37:42 2021 +0100
libgrapheme - Proper newlines in code
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/libs.suckless.org/libgrapheme/index.md b/libs.suckless.org/libgrapheme/index.md
index fbc28ecf..e0b5a76b 100644
--- a/libs.suckless.org/libgrapheme/index.md
+++ b/libs.suckless.org/libgrapheme/index.md
_AT_@ -67,7 +67,7 @@ into its user-perceived characters:
#include <grapheme.h>
#include <stdint.h>
#include <stdio.h>
-
+
int
main(void)
{
_AT_@ -77,14 +77,14 @@ into its user-perceived characters:
"\x9F\x87\xBA\xF0\x9F\x87\xB8 \xE0\xA4\xA8\xE0"
"\xA5\x80 \xE0\xAE\xA8\xE0\xAE\xBF!";
size_t ret, off;
-
+
printf("Input: \"%s\"
", s);
-
+
for (off = 0; s[off] != ' ret = grapheme_next_character_break(s + off, SIZE_MAX);
printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
}
-
+
return 0;
}
Received on Thu Dec 23 2021 - 10:37:57 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 23 2021 - 10:48:42 CET