analyze

abstract fun analyze(text: String, direction: Direction? = null): BidiText(source)

Analyzes text.

Parameters

text

the text to analyze, it may contain multiple paragraphs

direction

the paragraph direction, either Direction.LEFT_TO_RIGHT or Direction.RIGHT_TO_LEFT. When null the direction of every paragraph is determined from its first strong character (rules P2 and P3).