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(ByteBuffer
data of an ICU data file, containing the trie bytes, Trie.object which provides methods to parse the char
data dataManipulateCreates a new Trie with the settings for the trie data. |
| public | CharTrie(int
the initial value that is set for all code points initialValue, int the value for lead surrogate code _units_ that do not
have associated supplementary data leadUnitValue, Trie.object which provides methods to parse the char data dataManipulateMake a dummy CharTrie. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the argument Trie has the same data as this Trie, false otherwiseTrie to check other)Overrides com. |
| public final char | Returns: trie data value associated with the BMP codepointthe input BMP code point ch)Get the value associated with the BMP code point. |
| public final char | Returns: offset to datacodepoint ch)Gets the value associated with the codepoint. |
| protected final int | Returns: 32 bit valueImplements abstract com. |
| public final char | Returns: value associated with latin characterlatin 1 characters ch)Gets the latin 1 fast path value. |
| 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 com. |
| public final char | getSurrogateValue(char
a lead surrogate lead, char a trail surrogate trail)Get the value associated with a pair of surrogates. |
| public final char | Returns: trie data value associated with the trail charactervalue associated with the lead surrogate which contains
the folding offset leadvalue, char surrogate trail)Get a value from a folding offset (from the value of a lead surrogate) and a trail surrogate. |
| protected final int | Returns: 32 bit valuevalue at index will be retrieved index)Implements abstract com. |
| public int | |
| protected final void | unserialize(ByteBuffer
buffer containing trie data bytes)Overrides com. Parses the byte buffer 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(ByteBuffer bytes, Trie. Creates a new Trie with the settings for the trie data. Unserialize the 32-bit-aligned input buffer and use the data for the trie.
| |
| CharTrie | back to summary |
|---|---|
| public CharTrie(int initialValue, int leadUnitValue, Trie. Make a dummy CharTrie. A dummy trie is an empty runtime trie, used when a real data trie cannot be loaded. The trie always returns the initialValue, or the leadUnitValue for lead surrogate code points. The Latin-1 part is always set up to be linear.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides com. Checks if the argument Trie has the same data as this Trie | |
| getBMPValue | back to summary |
|---|---|
| public final char getBMPValue(char ch) Get the value associated with the BMP code point. Lead surrogate code points are treated as normal code points, with unfolded values that may differ from getLeadValue() results.
| |
| 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.
| |
| getInitialValue | back to summary |
|---|---|
| protected final int getInitialValue() Implements abstract com. Gets the default initial value
| |
| getLatin1LinearValue | back to summary |
|---|---|
| public 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.
| |
| 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 com. Gets the offset to the data which the surrogate pair points to.
| |
| getSurrogateValue | back to summary |
|---|---|
| public final char getSurrogateValue(char lead, char trail) Get the value associated with a pair of surrogates.
| |
| getTrailValue | back to summary |
|---|---|
| public 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
| |
| getValue | back to summary |
|---|---|
| protected final int getValue(int index) Implements abstract com. Gets the value at the argument index. For use internally in TrieIterator.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| unserialize | back to summary |
|---|---|
| protected final void unserialize(ByteBuffer bytes) Overrides com. Parses the byte buffer and stores its trie content into a index and data array
| |