GRAPHEME_NEXT_SENTENCE_BREAK(3)

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

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