Crate xi_unicode

Source
Expand description

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

Structs§

  • 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.
  • 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§

Functions§