|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Internal public interface CharIndexTranslator
Method Summary | |
---|---|
int |
getByteIndex(int charPos)
Calculates the byte index of the given char index. |
int |
getCharIndex(int bytePos)
Calculates the char index of the given byte index. |
int |
getCharIndex(int bytePos,
int startCP)
Calculates the char index of the given byte index. |
boolean |
isIndexInTable(int bytePos)
Check if index is in table |
int |
lookIndexBackward(int bytePos)
Return last index <= bytePos that is in table |
int |
lookIndexForward(int bytePos)
Return first index >= bytePos that is in table |
Method Detail |
---|
int getByteIndex(int charPos)
charPos
- The char position
int getCharIndex(int bytePos)
bytePos
- The character offset to check
int getCharIndex(int bytePos, int startCP)
bytePos
- The character offset to checkstartCP
- look from this characted position
boolean isIndexInTable(int bytePos)
bytePos
-
int lookIndexForward(int bytePos)
bytePos
-
int lookIndexBackward(int bytePos)
bytePos
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |