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.ValueWidthCodePointMap.Range, CodePointMap.RangeOption, CodePointMap.StringIterator, CodePointMap.ValueFilterdata, 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,
java.nio.ByteBuffer bytes)
Creates a trie from its binary form.
|
CodePointTrie.Type |
getType()
Returns the trie type.
|
CodePointMap.StringIterator |
stringIterator(java.lang.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, toBinarygetRange, iteratorpublic static CodePointTrie.Fast fromBinary(CodePointTrie.ValueWidth valueWidth, java.nio.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()
CodePointTriegetType in class CodePointTrieCodePointTrie.Type.FASTpublic 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 CodePointTriepublic final CodePointMap.StringIterator stringIterator(java.lang.CharSequence s, int sIndex)
stringIterator in class CodePointMaps - string to iterate oversIndex - string index where the iteration will startCopyright © 2016 Unicode, Inc. and others.