com.ibm.icu.impl.Trie
Modifier and Type | Field and Description |
---|---|
private char[] | m_data_
Array of char data |
private char | m_initialValue_
Default value |
Access | Constructor and Description |
---|---|
public | CharTrie(InputStream
file input stream to a ICU data file, containing
the trie inputStream, Trie.object which provides methods to parse the char
data dataManipulateCreates a new Trie with the settings for the trie data. |
Modifier and Type | Method and Description |
---|---|
public final char | Returns: offset to datacodepoint ch)Gets the value associated with the codepoint. |
public final char | Returns: data valuelead surrogate character ch)Gets the value to the data which this lead surrogate character points to. |
protected final int | Returns: offset to datalead surrogate lead, char trailing surrogate trail)Implements abstract jdk. |
protected final void | unserialize(InputStream
data input stream containing trie data inputStream)Overrides jdk. Parses the input stream and stores its trie content into a index and data array |
m_data_ | back to summary |
---|---|
private char[] m_data_ Array of char data |
m_initialValue_ | back to summary |
---|---|
private char m_initialValue_ Default value |
CharTrie | back to summary |
---|---|
public CharTrie(InputStream inputStream, Trie. 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.
|
getCodePointValue | back to summary |
---|---|
public final char getCodePointValue(int ch) Gets the value associated with the codepoint. If no value is associated with the codepoint, a default value will be returned.
|
getLeadValue | back to summary |
---|---|
public final char getLeadValue(char ch) Gets the value to the data which this lead surrogate character points to. Returned data may contain folding offset information for the next trailing surrogate character. This method does not guarantee correct results for trail surrogates.
|
getSurrogateOffset | back to summary |
---|---|
protected final int getSurrogateOffset(char lead, char trail) Implements abstract jdk. Gets the offset to the data which the surrogate pair points to.
|
unserialize | back to summary |
---|---|
protected final void unserialize(InputStream inputStream) throws IOException Overrides jdk. Parses the input stream and stores its trie content into a index and data array
|