public final class IndexedEmoji extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getCharIndex()
Gets the character index at which the emoji starts.
|
int |
getCodePointIndex()
Gets the codepoint index at which the emoji starts.
|
Emoji |
getEmoji()
Gets the captured
emoji. |
int |
getEndCharIndex()
Gets the character index at which the emoji ends.
|
int |
getEndCodePointIndex()
Gets the codepoint index at which the emoji ends.
|
String |
toString() |
public int getCharIndex()
The index is included in 0 < input <= input.length() - 1
public int getCodePointIndex()
This must not be confused with getCharIndex(),
a codepoint can contain one or two characters,
which means the codepoint index will likely be lower than the character index.
public int getEndCharIndex()
The index is included in 0 < input <= input.length() - 1
public int getEndCodePointIndex()
This must not be confused with getEndCharIndex(),
a codepoint can contain one or two characters,
which means the codepoint index will likely be lower than the character index.