bidi library Null safety

Implementation of the Bidi algorithm, as described in http://www.unicode.org/reports/tr9/tr9-17.html.

Converts logical strings to their equivalent visual representation. Persian, Hebrew and Arabic languages (and any other RTL language) are supported.

Classes

Paragraph
Represents a paragraph in text.

Functions

compose(String sequence) int
Composes a sequence.
getUnicodeDecompositionMapping(int c) List<int>?
Gets the Unicode decomposition mapping.
logicalToVisual(String logicalString) List<int>
Implementation of the BIDI algorithm, as described in http://www.unicode.org/reports/tr9/tr9-17.html logicalString is the original logical-ordered string. Returns the visual representation of the string.
logicalToVisual2(String logicalString, List<int> indexes, List<int> lengths) String
Implementation of the BIDI algorithm, as described in http://www.unicode.org/reports/tr9/tr9-17.html logicalString is the original logical-ordered string. indexes Implies where the original characters are. lengths Implies how many characters each original character occupies. Returns the visual representation of the string.
splitStringToParagraphs(String logicalString) List<Paragraph>
Split the text into separate paragraphs.