GRAPHEME_NEXT_WORD_BREAK(3)

πŸ“¦ version 3.0.0, in nixos 26.05, nixpkgs unstable

πŸ’– 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