Package com.mta.tehreer.unicode
Class BidiRun
java.lang.Object
com.mta.tehreer.unicode.BidiRun
A
BidiRun
object represents a sequence of characters which have the same embedding
level. The direction of run is considered right-to-left, if its embedding level is odd.-
Field Summary
Modifier and TypeFieldDescriptionint
The index after the last character of this run in source text.int
The index to the first character of this run in source text.byte
The embedding level of this run. -
Constructor Summary
-
Method Summary
-
Field Details
-
charStart
public int charStartThe index to the first character of this run in source text. -
charEnd
public int charEndThe index after the last character of this run in source text. -
embeddingLevel
public byte embeddingLevelThe embedding level of this run.
-
-
Constructor Details
-
BidiRun
public BidiRun(int charStart, int charEnd, byte embeddingLevel) Constructs a bidi run object.- Parameters:
charStart
- The index to the first character of run.charEnd
- The index after the last character of run.embeddingLevel
- The embedding level of run.
-
BidiRun
public BidiRun()Constructs a bidi run object.
-
-
Method Details
-
isRightToLeft
public boolean isRightToLeft()Returnstrue
if the embedding level of this run is odd.- Returns:
true
if this run is right-to-left,false
otherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-