Module utf16 Copy item path Source BidiInfo Bidi information of the text (UTF-16 version). InitialInfo Initial bidi information of the text (UTF-16 version). InitialInfoExt ๐ Extended version of InitialInfo (not public API). Paragraph Contains a reference of BidiInfo
and one of its paragraphs
.
And it supports all operation in the Paragraph
that needs also its
BidiInfo
such as direction
. ParagraphBidiInfo Bidi information of text treated as a single paragraph. Utf16CharIndexIter Iterator over UTF-16 text in a u16 slice, returning (index, char) tuple. Utf16CharIter Iterator over UTF-16 text in a u16 slice, returning Unicode chars.
(Unlike the other iterators above, this also supports reverse iteration.) Utf16IndexLenIter Iterator over UTF-16 text in a u16 slice, returning (index, char_len) tuple. is_high_surrogate ๐ Implementation of TextSource for UTF-16 text in a u16 array.
Note that there could be unpaired surrogates present! is_low_surrogate ๐ reorder_line ๐ Return a line of the text in display order based on resolved levels.