BidiRun
open class BidiRun
kotlin.Any | |
↳ | android.icu.text.BidiRun |
A BidiRun represents a sequence of characters at the same embedding level. The Bidi algorithm decomposes a piece of text into sequences of characters at the same embedding level, each such sequence is called a "run".
A BidiRun represents such a run by storing its essential properties, but does not duplicate the characters which form the run.
The "limit" of the run is the position just after the last character, i.e., one more than that position.
This class has no public constructor, and its members cannot be modified by users.
Summary
Public methods | |
---|---|
open Byte |
Get direction of run |
open Byte |
Get level of run |
open Int |
Get length of run |
open Int |
getLimit() Get position of one character after the end of the run in the source text |
open Int |
getStart() Get the first logical position of the run in the source text |
open Boolean |
Check if run level is even |
open Boolean |
isOddRun() Check if run level is odd |
open String |
toString() String to display run |
Public methods
getLimit
open fun getLimit(): Int
Get position of one character after the end of the run in the source text
getStart
open fun getStart(): Int
Get the first logical position of the run in the source text
isEvenRun
open fun isEvenRun(): Boolean
Check if run level is even
Return | |
---|---|
Boolean |
true if the embedding level of this run is even, i.e. it is a left-to-right run. |
isOddRun
open fun isOddRun(): Boolean
Check if run level is odd
Return | |
---|---|
Boolean |
true if the embedding level of this run is odd, i.e. it is a right-to-left run. |
toString
open fun toString(): String
String to display run
Return | |
---|---|
String |
a string representation of the object. |