Module str

Available on crate features __ecma and __utils only.

Constants§

CR
U+000D CARRIAGE RETURN, abbreviated in the spec as <CR>.
EOF
FF
U+000C FORM FEED, abbreviated <FF>.
LF
U+000A LINE FEED, abbreviated in the spec as <LF>.
LS
U+2028 LINE SEPARATOR, abbreviated <LS>.
NBSP
U+00A0 NON-BREAKING SPACE, abbreviated <NBSP>.
PS
U+2029 PARAGRAPH SEPARATOR, abbreviated <PS>.
SP
U+0020 SPACE, abbreviated <SP>.
TAB
U+0009 CHARACTER TABULATION, abbreviated <TAB>.
VT
U+000B VERTICAL TAB, abbreviated <VT>.
ZWJ
U+200D ZERO WIDTH JOINER, abbreviated as <ZWJ>. Specially permitted in identifiers.
ZWNBSP
U+FEFF ZERO WIDTH NO-BREAK SPACE, abbreviated <ZWNBSP>. Considered a whitespace character in JS.
ZWNJ
U+200C ZERO WIDTH NON-JOINER, abbreviated in the spec as <ZWNJ>. Specially permitted in identifiers.

Functions§

is_irregular_line_terminator
is_irregular_whitespace
is_line_terminator
is_regular_line_terminator
is_white_space_single_line