| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static Trie2_16 | Returns: An unserialized Trie2_16, ready for use.a byte buffer to the serialized form of a UTrie2. bytes)Hides jdk. Create a Trie2 from its serialized form. |
| public final int | Returns: the valuethe code point codePoint)Implements abstract jdk. Get the value for a code point as stored in the Trie2. |
| public int | Returns: the valuea 16 bit code unit or lead surrogate value. codeUnit)Implements abstract jdk. Get a Trie2 value for a UTF-16 code unit. |
| public int |
| Trie2_16 | back to summary |
|---|---|
| pack-priv Trie2_16() Internal constructor, not for general use. | |
| createFromSerialized | back to summary |
|---|---|
| public static Trie2_16 createFromSerialized(ByteBuffer bytes) throws IOException Hides jdk. Create a Trie2 from its serialized form. Inverse of utrie2_serialize(). The serialized format is identical between ICU4C and ICU4J, so this function will work with serialized Trie2s from either. The serialized Trie2 in the bytes may be in either little or big endian byte order. This allows using serialized Tries from ICU4C without needing to consider the byte order of the system that created them.
| |
| get | back to summary |
|---|---|
| public final int get(int codePoint) Implements abstract jdk. Get the value for a code point as stored in the Trie2.
| |
| getFromU16SingleLead | back to summary |
|---|---|
| public int getFromU16SingleLead(char codeUnit) Implements abstract jdk. Get a Trie2 value for a UTF-16 code unit. This function returns the same value as get() if the input character is outside of the lead surrogate range There are two values stored in a Trie2 for inputs in the lead surrogate range. This function returns the alternate value, while Trie2.get() returns the main value.
| |
| getSerializedLength | back to summary |
|---|---|
public int getSerializedLength()
| |