Module line

Source

Structsยง

LineBreakIterator
Implements the Iterator trait over the line break opportunities of the given string.
LineBreakOptions
Options to tailor line-breaking behavior.
LineBreakTypeLatin1
LineBreakTypePotentiallyIllFormedUtf8
LineBreakTypeUtf8
LineBreakTypeUtf16
LineSegmenter
Supports loading line break data, and creating line break iterators for different string encodings.

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 ๐Ÿ”’
AL ๐Ÿ”’
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 ๐Ÿ”’
RI ๐Ÿ”’
SA ๐Ÿ”’
SG ๐Ÿ”’
SP ๐Ÿ”’
SY ๐Ÿ”’
UNKNOWN ๐Ÿ”’
WJ ๐Ÿ”’
XX ๐Ÿ”’
ZW ๐Ÿ”’
ZWJ ๐Ÿ”’

Traitsยง

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

Functionsยง

handle_complex_language_utf8 ๐Ÿ”’
handle_complex_language impl for UTF8 iterators
is_break_utf32_by_loose ๐Ÿ”’

Type Aliasesยง

LineBreakIteratorLatin1
Line break iterator for a Latin-1 (8-bit) string.
LineBreakIteratorPotentiallyIllFormedUtf8
Line break iterator for a potentially invalid UTF-8 string.
LineBreakIteratorUtf8
Line break iterator for an str (a UTF-8 string).
LineBreakIteratorUtf16
Line break iterator for a UTF-16 string.