Class CodePointTrie.Fast16
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.util.CodePointMap
org.graalvm.shadowed.com.ibm.icu.util.CodePointTrie
org.graalvm.shadowed.com.ibm.icu.util.CodePointTrie.Fast
org.graalvm.shadowed.com.ibm.icu.util.CodePointTrie.Fast16
- All Implemented Interfaces:
Iterable<CodePointMap.Range>
- Enclosing class:
CodePointTrie
A CodePointTrie with
CodePointTrie.Type.FAST and CodePointTrie.ValueWidth.BITS_16.-
Nested Class Summary
Nested classes/interfaces inherited from class CodePointTrie
CodePointTrie.Fast, CodePointTrie.Fast16, CodePointTrie.Fast32, CodePointTrie.Fast8, CodePointTrie.Small, CodePointTrie.Small16, CodePointTrie.Small32, CodePointTrie.Small8, CodePointTrie.Type, CodePointTrie.ValueWidthNested classes/interfaces inherited from class CodePointMap
CodePointMap.Range, CodePointMap.RangeOption, CodePointMap.StringIterator, CodePointMap.ValueFilter -
Field Summary
Fields inherited from class CodePointTrie
data, dataLength, highStart -
Method Summary
Modifier and TypeMethodDescriptionfinal intbmpGet(int c) Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking.static CodePointTrie.Fast16fromBinary(ByteBuffer bytes) Creates a trie from its binary form.final intget(int c) Returns the value for a code point as stored in the map, with range checking.final intsuppGet(int c) Returns a trie value for a supplementary code point (U+10000..U+10FFFF), without range checking.Methods inherited from class CodePointTrie.Fast
cpIndex, fromBinary, getType, stringIteratorMethods inherited from class CodePointTrie
asciiGet, fastIndex, fromBinary, getRange, getValueWidth, smallIndex, toBinaryMethods inherited from class CodePointMap
getRange, iteratorMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
fromBinary
Creates a trie from its binary form. Same asCodePointTrie.fromBinary(Type, ValueWidth, ByteBuffer)withCodePointTrie.Type.FASTandCodePointTrie.ValueWidth.BITS_16.- Parameters:
bytes- a buffer containing the binary data of a CodePointTrie- Returns:
- the trie
-
get
public final int get(int c) Returns the value for a code point as stored in the map, with range checking. Returns an implementation-defined error value if c is not in the range 0..U+10FFFF.- Overrides:
getin classCodePointTrie- Parameters:
c- the code point- Returns:
- the map value, or an implementation-defined error value if the code point is not in the range 0..U+10FFFF
-
bmpGet
public final int bmpGet(int c) Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking. Can be used to look up a value for a UTF-16 code unit if other parts of the string processing check for surrogates.- Specified by:
bmpGetin classCodePointTrie.Fast- Parameters:
c- the input code point, must be U+0000..U+FFFF- Returns:
- The BMP code point's trie value.
-
suppGet
public final int suppGet(int c) Returns a trie value for a supplementary code point (U+10000..U+10FFFF), without range checking.- Specified by:
suppGetin classCodePointTrie.Fast- Parameters:
c- the input code point, must be U+10000..U+10FFFF- Returns:
- The supplementary code point's trie value.
-