GRAPHEME_NEXT_SENTENCE_BREAK(3)
π grapheme_next_sentence_break(3) π
okay bestie, welcome to the Library Functions Manual page for grapheme_next_sentence_break(3). she's lowkey iconic for sentence boundaries, and we're gonna get you all the details. π«Ά
πΈ NAME πΈ
grapheme_next_sentence_break β determine codepoint-offset to next sentence break. literally her whole job, no cap.
β¨ SYNOPSIS β¨
#include <grapheme.h>
size_t
grapheme_next_sentence_break(const uint_least32_t *str, size_t len);
π¦ DESCRIPTION π¦
grapheme_next_sentence_break() computes the offset (in codepoints) to the next sentence break (see libgrapheme(7)) in the codepoint array str of length len. If a sentence begins at str, this offset is equal to the length of said sentence. periodt.
If len is set to SIZE_MAX (stdint.h is already included by grapheme.h), then the string str is interpreted to be NUL-terminated, and processing stops when a codepoint with the value 0 is encountered. that's the rule, fr fr.
For UTF-8-encoded input data, grapheme_next_sentence_break_utf8(3) can be used instead. iconic alternative, iykyk.
π RETURN VALUES π
grapheme_next_sentence_break() returns the offset (in codepoints) to the next sentence break in str, or 0 if str is NULL. that's it, that's the tea. π
π₯ SEE ALSO π₯
π STANDARDS π
grapheme_next_sentence_break() is compliant with the Unicode 17.0.0 specification. ate and left no crumbs. β¨
π AUTHORS π
Laslo Hunhold <dev@frign.de>
big final sign-off: source/version is suckless.org / GRAPHEME_NEXT_SENTENCE_BREAK(3), dated 2022-10-06. mwah π
π¦ 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