pub enum LineBreakClass {
Show 23 variants
BK,
CR,
LF,
ZW,
WJ,
GL,
SP,
OP,
CL,
CP,
EX,
NS,
ID,
AL,
NU,
HY,
BA,
BB,
IN,
IS,
PR,
PO,
XX,
}Expand description
Unicode UAX #14 Line Breaking Class.
Variants§
BK
Mandatory Break (\n, \r, \u{000C}).
CR
Carriage Return.
LF
Line Feed.
ZW
Zero Width Space (\u{200B}).
WJ
Word Joiner (\u{2060}, \u{FEFF}).
GL
Non-breaking Glue (\u{00A0}, \u{202F}).
SP
Space (’ ’, ‘\t’).
OP
Open Punctuation (prohibited at line end: ‘(’, ‘[’, ‘{’, ‘(’, ‘「’, ‘『’, ‘【’, ‘《’).
CL
Close Punctuation (prohibited at line start: ‘)’, ‘]’, ‘}’, ‘)’, ‘」’, ‘』’, ‘】’, ‘》’, ‘。’, ‘、’).
CP
Close Parenthesis (prohibited at line start: ‘)’, ‘]’, ‘)’, ‘]’).
EX
Exclamation / Interrogation (prohibited at line start: ‘!’, ‘?’, ‘!’, ‘?’).
NS
Non-starter (prohibited at line start: small kana ぁ, ぃ, っ, ゃ, prolonged sound ー).
ID
Ideographic / CJK character (allows break before and after other ideographs).
AL
Ordinary Alphabetic character (Latin, Cyrillic, Greek, Arabic, Hebrew).
NU
Numeric digit (0..=9).
HY
Hyphen (‘-’).
BA
Break After (em-dash ‘—’, en-dash ‘–’, soft hyphen \u{00AD}).
BB
Break Before.
IN
Inseparable (ellipsis ‘…’, ‘‥’).
IS
Infix Numeric Separator (‘,’, ‘.’, ‘:’, ‘;’).
PR
Prefix Numeric (‘$’, ‘£’, ‘¥’, ‘€’, ‘¢’).
PO
Postfix Numeric (‘%’, ‘‰’, ‘°’).
XX
Unknown / Other.