public final class IndexedAlias extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Gets the captured alias.
|
int |
getCharIndex()
Gets the character index at which the alias starts.
|
int |
getCodePointIndex()
Gets the codepoint index at which the alias starts.
|
List<Emoji> |
getEmojis()
Gets the
Emojis. |
int |
getEndCharIndex()
Gets the character index at which the alias ends.
|
int |
getEndCodePointIndex()
Gets the codepoint index at which the alias ends.
|
String |
toString() |
public String getAlias()
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.