public abstract static class CodePointTrie.Fast extends CodePointTrie
CodePointTrie.Type.FAST
.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 |
---|---|
abstract int |
bmpGet(int c)
Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking.
|
protected int |
cpIndex(int c)
Deprecated.
This API is ICU internal only.
|
static CodePointTrie.Fast |
fromBinary(CodePointTrie.ValueWidth valueWidth,
ByteBuffer bytes)
Creates a trie from its binary form.
|
CodePointTrie.Type |
getType()
Returns the trie type.
|
CodePointMap.StringIterator |
stringIterator(CharSequence s,
int sIndex)
Returns an iterator (not a java.util.Iterator) over code points of a string
for fetching map values.
|
abstract int |
suppGet(int c)
Returns a trie value for a supplementary code point (U+10000..U+10FFFF),
without range checking.
|
asciiGet, fastIndex, fromBinary, get, getRange, getValueWidth, smallIndex, toBinary
getRange, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static CodePointTrie.Fast fromBinary(CodePointTrie.ValueWidth valueWidth, ByteBuffer bytes)
CodePointTrie.fromBinary(Type, ValueWidth, ByteBuffer)
with CodePointTrie.Type.FAST
.valueWidth
- selects the number of bits in a data value; this method throws an exception
if the valueWidth does not match the binary data;
use null to accept any data value widthbytes
- a buffer containing the binary data of a CodePointTriepublic final CodePointTrie.Type getType()
CodePointTrie
getType
in class CodePointTrie
CodePointTrie.Type.FAST
public abstract int bmpGet(int c)
c
- the input code point, must be U+0000..U+FFFFpublic abstract int suppGet(int c)
c
- the input code point, must be U+10000..U+10FFFF@Deprecated protected final int cpIndex(int c)
cpIndex
in class CodePointTrie
public final CodePointMap.StringIterator stringIterator(CharSequence s, int sIndex)
stringIterator
in class CodePointMap
s
- string to iterate oversIndex
- string index where the iteration will startCopyright © 2016 Unicode, Inc. and others.