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
FieldsModifier and TypeFieldDescriptionintThe index after the last character of this run in source text.intThe index to the first character of this run in source text.byteThe embedding level of this run. -
Constructor Summary
Constructors -
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()Returnstrueif the embedding level of this run is odd.- Returns:
trueif this run is right-to-left,falseotherwise.
-
equals
-
hashCode
public int hashCode() -
toString
-