Trie2_32
as long as that does not load ICU4C selector data.
com.ibm.icu.impl.Trie
| Modifier and Type | Field and Description |
|---|---|
| private int[] | m_data_
Array of char data |
| private int | m_initialValue_
Default value |
| Access | Constructor and Description |
|---|---|
| public | IntTrie(ByteBuffer
file buffer to a 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 | IntTrie(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 IntTrie. |
| pack-priv | IntTrie(char[]
the index array to be slotted into this trie index, int[] the data array to be slotted into this trie data, int the initial value for this trie initialvalue, int trie options to use options, Trie.folding implementation datamanipulateInternal constructor for builder use |
| 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 int | 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 int | Returns: offset to datacodepoint ch)Gets the value associated with the codepoint. |
| protected final int | Returns: 32 bit valueImplements abstract com. |
| public final int | Returns: value associated with latin characterlatin 1 characters ch)Gets the latin 1 fast path value. |
| public final int | 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 int | getSurrogateValue(char
a lead surrogate lead, char a trail surrogate trail)Get the value associated with a pair of surrogates. |
| public final int | Returns: trie data value associated with the trail characterthe value of a lead surrogate that 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
data buffer containing trie data bytes)Overrides com. Parses the input stream and stores its trie content into a index and data array |
| m_data_ | back to summary |
|---|---|
| private int[] m_data_ Array of char data | |
| m_initialValue_ | back to summary |
|---|---|
| private int m_initialValue_ Default value | |
| IntTrie | back to summary |
|---|---|
| public IntTrie(ByteBuffer bytes, 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.
| |
| IntTrie | back to summary |
|---|---|
| public IntTrie(int initialValue, int leadUnitValue, Trie. Make a dummy IntTrie. 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.
| |
| IntTrie | back to summary |
|---|---|
| pack-priv IntTrie(char[] index, int[] data, int initialvalue, int options, Trie. Internal constructor for builder use
| |
| 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 int 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 int 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 int 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 int 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 int getSurrogateValue(char lead, char trail) Get the value associated with a pair of surrogates.
| |
| getTrailValue | back to summary |
|---|---|
| public final int getTrailValue(int leadvalue, char trail) Get a value from a folding offset (from the value of a lead surrogate) and a trail surrogate.
| |
| 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 input stream and stores its trie content into a index and data array
| |