Skip to main content

Module line

Module line 

Source
Expand description

LineSegmenter and its related iterators, borrowed types, and options.

Structsยง

LineBreakIterator
Implements the Iterator trait over the line break opportunities of the given string.
LineBreakOptions
Options to tailor line-breaking behavior.
LineSegmenter
Supports loading line break data, and creating line break iterators for different string encodings.
LineSegmenterBorrowed
Segments a string into lines (borrowed version).
ResolvedLineBreakOptions ๐Ÿ”’

Enumsยง

LineBreakStrictness
An enum specifies the strictness of line-breaking rules. It can be passed as an argument when creating a line segmenter.
LineBreakWordOption
An enum specifies the line break opportunities between letters. It can be passed as an argument when creating a line segmenter.
StringBoundaryPosType ๐Ÿ”’

Constantsยง

AI ๐Ÿ”’
AK ๐Ÿ”’
AL ๐Ÿ”’
AL_DOTTED_CIRCLE ๐Ÿ”’
AP ๐Ÿ”’
AS ๐Ÿ”’
B2 ๐Ÿ”’
BA ๐Ÿ”’
BB ๐Ÿ”’
BK ๐Ÿ”’
CB ๐Ÿ”’
CJ ๐Ÿ”’
CL ๐Ÿ”’
CM ๐Ÿ”’
CP ๐Ÿ”’
CR ๐Ÿ”’
EB ๐Ÿ”’
EM ๐Ÿ”’
EX ๐Ÿ”’
GL ๐Ÿ”’
H2 ๐Ÿ”’
H3 ๐Ÿ”’
HL ๐Ÿ”’
HY ๐Ÿ”’
ID ๐Ÿ”’
ID_CN ๐Ÿ”’
IN ๐Ÿ”’
IS ๐Ÿ”’
JL ๐Ÿ”’
JT ๐Ÿ”’
JV ๐Ÿ”’
LF ๐Ÿ”’
NL ๐Ÿ”’
NS ๐Ÿ”’
NU ๐Ÿ”’
OP_EA ๐Ÿ”’
OP_OP30 ๐Ÿ”’
PO ๐Ÿ”’
PO_EAW ๐Ÿ”’
PR ๐Ÿ”’
PR_EAW ๐Ÿ”’
QU ๐Ÿ”’
QU_PF ๐Ÿ”’
QU_PI ๐Ÿ”’
RI ๐Ÿ”’
SA ๐Ÿ”’
SP ๐Ÿ”’
SY ๐Ÿ”’
UNKNOWN ๐Ÿ”’
VF ๐Ÿ”’
VI ๐Ÿ”’
WJ ๐Ÿ”’
XX ๐Ÿ”’
ZW ๐Ÿ”’
ZWJ ๐Ÿ”’

Traitsยง

LineBreakType
A trait allowing for LineBreakIterator to be generalized to multiple string iteration methods.

Functionsยง

is_break_utf32_by_loose ๐Ÿ”’
line_handle_complex_language_utf8 ๐Ÿ”’
line_handle_complex_language impl for UTF8 iterators