public static final class CodePointTrie.Fast32 extends CodePointTrie.Fast
CodePointTrie.Type.FAST
and CodePointTrie.ValueWidth.BITS_32
.CodePointTrie.Fast, CodePointTrie.Fast16, CodePointTrie.Fast32, CodePointTrie.Fast8, CodePointTrie.Small, CodePointTrie.Small16, CodePointTrie.Small32, CodePointTrie.Small8, CodePointTrie.Type, CodePointTrie.ValueWidth
CodePointMap.Range, CodePointMap.RangeOption, CodePointMap.StringIterator, CodePointMap.ValueFilter
data, dataLength, highStart
Modifier and Type | Method and Description |
---|---|
int |
bmpGet(int c)
Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking.
|
static CodePointTrie.Fast32 |
fromBinary(java.nio.ByteBuffer bytes)
Creates a trie from its binary form.
|
int |
get(int c)
Returns the value for a code point as stored in the map, with range checking.
|
int |
suppGet(int c)
Returns a trie value for a supplementary code point (U+10000..U+10FFFF),
without range checking.
|
cpIndex, fromBinary, getType, stringIterator
asciiGet, fastIndex, fromBinary, getRange, getValueWidth, smallIndex, toBinary
getRange, iterator
public static CodePointTrie.Fast32 fromBinary(java.nio.ByteBuffer bytes)
CodePointTrie.fromBinary(Type, ValueWidth, ByteBuffer)
with CodePointTrie.Type.FAST
and CodePointTrie.ValueWidth.BITS_32
.bytes
- a buffer containing the binary data of a CodePointTriepublic final int get(int c)
get
in class CodePointTrie
c
- the code pointpublic final int bmpGet(int c)
bmpGet
in class CodePointTrie.Fast
c
- the input code point, must be U+0000..U+FFFFpublic final int suppGet(int c)
suppGet
in class CodePointTrie.Fast
c
- the input code point, must be U+10000..U+10FFFFCopyright © 2016 Unicode, Inc. and others.