|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CharIndexTranslator
Method Summary | |
---|---|
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 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 |