public 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. |
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.