GRAPHEME_NEXT_WORD_BREAK(3)
π NAME π
okay so this is the GRAPHEME_NEXT_WORD_BREAK(3) manual page from the Library Functions Manual, and it's all about grapheme_next_word_break β the function that determines the codepoint-offset to the next word break. it's giving βwhere does this word end?β energy, and honestly? iconic. π
β¨ SYNOPSIS β¨
#include <grapheme.h>
size_t
grapheme_next_word_break(const uint_least32_t *str, size_t len);
π¦ DESCRIPTION π¦
grapheme_next_word_break() computes the offset β in codepoints, not bytes, bestie β to the next word break (peep libgrapheme(7) for the whole lore) in the codepoint array str of length len. if a word begins at str, that offset is literally equal to the length of said word. slay. β¨
if len is set to SIZE_MAX (stdint.h is already included by grapheme.h, so don't come for me), then str is interpreted to be NUL-terminated, and processing stops when a codepoint with the value 0 is encountered. periodt. π
for UTF-8-encoded input data, grapheme_next_word_break_utf8(3) can be used instead. no cap. π
π RETURN VALUES π
grapheme_next_word_break() returns the offset (in codepoints) to the next word break in str β or 0 if str is NULL. that's the whole vibe check. π
π SEE ALSO π
β STANDARDS β
grapheme_next_word_break() is compliant with the Unicode 17.0.0 specification. ate and left no crumbs. π
πΈ AUTHORS πΈ
Laslo Hunhold <dev@frign.de> β main character energy fr fr. π«Ά
and that's the whole page, bestie! this cutie came from suckless.org, dated 2022-10-06, and it's the GRAPHEME_NEXT_WORD_BREAK(3) manual page. π
π¦ where this page comes from
- nixos 26.05: libgrapheme 3.0.0
- nixpkgs unstable: libgrapheme 3.0.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms