Content-type: text/html; charset=UTF-8
Man page of GRAPHEME_NEXT_CHARACTER_BREAK
GRAPHEME_NEXT_CHARACTER_BREAK
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
suckless.org
NAME
grapheme_next_character_break
- determine codepoint-offset to next grapheme cluster break
SYNOPSIS
In grapheme.h
Ft size_t
Fn grapheme_next_character_break const uint_least32_t *str size_t len
DESCRIPTION
The
Fn grapheme_next_character_break
function computes the offset (in codepoints) to the next grapheme cluster
break (see
libgrapheme(7))
in the codepoint array
str
of length
len
If a grapheme cluster begins at
str
this offset is equal to the length of said grapheme cluster.
If
len
is set to
SIZE_MAX
(stdint.h is already included by grapheme.h) the string
str
is interpreted to be NUL-terminated and processing stops when
a codepoint with the value 0 is encountered.
For UTF-8-encoded input
data
grapheme_next_character_break_utf83
can be used instead.
RETURN VALUES
The
Fn grapheme_next_character_break
function returns the offset (in codepoints) to the next grapheme cluster
break in
str
or 0 if
str
is
NULL
SEE ALSO
grapheme_is_character_break3,
grapheme_next_character_break_utf83,
libgrapheme(7)
STANDARDS
Fn grapheme_next_character_break
is compliant with the Unicode 15.0.0 specification.
AUTHORS
An Laslo Hunhold Aq Mt dev@frign.de
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
- AUTHORS
-
This document was created by
man2html,
using the manual pages.
Time: 06:27:21 GMT, December 21, 2024