Crate xi_unicode

Source
Expand description

Unicode utilities useful for text editing, including a line breaking iterator.

Structs§

LineBreakIterator
An iterator which produces line breaks according to the UAX 14 line breaking algorithm. For each break, return a tuple consisting of the offset within the source string and a bool indicating whether it’s a hard break.
LineBreakLeafIter
A struct useful for computing line breaks in a rope or other non-contiguous string representation. This is a trickier problem than iterating in a string for a few reasons, the trickiest of which is that in the general case, line breaks require an indeterminate amount of look-behind.

Traits§

EmojiExt

Functions§

is_keycap_base
is_variation_selector
linebreak_property
The Unicode line breaking property of the given code point.
linebreak_property_str
The Unicode line breaking property of the given code point.