public abstract static class CodePointTrie.Small extends CodePointTrie
CodePointTrie.Type.SMALL
.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 |
---|---|
protected int |
cpIndex(int c)
Deprecated.
This API is ICU internal only.
|
static CodePointTrie.Small |
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.
|
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.Small fromBinary(CodePointTrie.ValueWidth valueWidth, ByteBuffer bytes)
CodePointTrie.fromBinary(Type, ValueWidth, ByteBuffer)
with CodePointTrie.Type.SMALL
.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.SMALL
@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.