Module unicode_bidi::utf16
source ยท Structsยง
- Bidi information of the text (UTF-16 version).
- Initial bidi information of the text (UTF-16 version).
- Initial
Info ๐Ext Extended version of InitialInfo (not public API). - Contains a reference of
BidiInfo
and one of itsparagraphs
. And it supports all operation in theParagraph
that needs also itsBidiInfo
such asdirection
. - Bidi information of text treated as a single paragraph.
- Iterator over UTF-16 text in a u16 slice, returning (index, char) tuple.
- Iterator over UTF-16 text in a u16 slice, returning Unicode chars. (Unlike the other iterators above, this also supports reverse iteration.)
- Iterator over UTF-16 text in a u16 slice, returning (index, char_len) tuple.
Functionsยง
- 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.