| Modifier and Type | Class and Description |
|---|---|
class |
CharTrie.FriendAgent
Java friend implementation
|
Trie.DataManipulate| Constructor and Description |
|---|
CharTrie(InputStream inputStream,
Trie.DataManipulate dataManipulate)
Creates a new Trie with the settings for the trie data.
|
CharTrie(int initialValue,
int leadUnitValue,
Trie.DataManipulate dataManipulate)
Make a dummy CharTrie.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Checks if the argument Trie has the same data as this Trie
|
char |
getBMPValue(char ch)
Get the value associated with the BMP code point.
|
char |
getCodePointValue(int ch)
Gets the value associated with the codepoint.
|
char |
getLatin1LinearValue(char ch)
Gets the latin 1 fast path value.
|
char |
getLeadValue(char ch)
Gets the value to the data which this lead surrogate character points
to.
|
char |
getSurrogateValue(char lead,
char trail)
Get the value associated with a pair of surrogates.
|
char |
getTrailValue(int leadvalue,
char trail)
Get a value from a folding offset (from the value of a lead surrogate)
and a trail surrogate.
|
void |
putIndexData(UCharacterProperty friend)
Java friend implementation
To store the index and data array into the argument.
|
getSerializedDataSize, isLatin1Linearpublic CharTrie(InputStream inputStream, Trie.DataManipulate dataManipulate) throws IOException
Creates a new Trie with the settings for the trie data.
Unserialize the 32-bit-aligned input stream and use the data for the trie.
inputStream - file input stream to a ICU data file, containing
the triedataManipulate - object which provides methods to parse the char
dataIOException - thrown when data reading failspublic CharTrie(int initialValue,
int leadUnitValue,
Trie.DataManipulate dataManipulate)
initialValue - the initial value that is set for all code pointsleadUnitValue - the value for lead surrogate code _units_ that do not
have associated supplementary datadataManipulate - object which provides methods to parse the char datapublic void putIndexData(UCharacterProperty friend)
friend - java friend UCharacterProperty object to store the arraypublic final char getCodePointValue(int ch)
ch - codepointpublic final char getLeadValue(char ch)
ch - lead surrogate characterpublic final char getBMPValue(char ch)
ch - the input BMP code pointpublic final char getSurrogateValue(char lead,
char trail)
lead - a lead surrogatetrail - a trail surrogatepublic final char getTrailValue(int leadvalue,
char trail)
Get a value from a folding offset (from the value of a lead surrogate) and a trail surrogate.
If the
leadvalue - value associated with the lead surrogate which contains
the folding offsettrail - surrogatepublic final char getLatin1LinearValue(char ch)
Gets the latin 1 fast path value.
Note this only works if latin 1 characters have their own linear array.
ch - latin 1 charactersCopyright © 2010 - 2020 Adobe. All Rights Reserved