Added in API level 29

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

Get position of one character after the end of the run in the source text

open Int

Get the first logical position of the run in the source text

open Boolean

Check if run level is even

open Boolean

Check if run level is odd

open String

String to display run

Public methods

getDirection

Added in API level 29
open fun getDirection(): Byte

Get direction of run

getEmbeddingLevel

Added in API level 29
open fun getEmbeddingLevel(): Byte

Get level of run

getLength

Added in API level 29
open fun getLength(): Int

Get length of run

getLimit

Added in API level 29
open fun getLimit(): Int

Get position of one character after the end of the run in the source text

getStart

Added in API level 29
open fun getStart(): Int

Get the first logical position of the run in the source text

isEvenRun

Added in API level 29
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

Added in API level 29
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

Added in API level 29
open fun toString(): String

String to display run

Return
String a string representation of the object.