Class CodePointTrie.Fast
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
- All Implemented Interfaces:
Iterable<CodePointMap.Range>
- Direct Known Subclasses:
CodePointTrie.Fast16, CodePointTrie.Fast32, CodePointTrie.Fast8
- Enclosing class:
CodePointTrie
A CodePointTrie with
CodePointTrie.Type.FAST.-
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 TypeMethodDescriptionabstract intbmpGet(int c) Returns a trie value for a BMP code point (U+0000..U+FFFF), without range checking.protected final intcpIndex(int c) Deprecated.This API is ICU internal only.static CodePointTrie.FastfromBinary(CodePointTrie.ValueWidth valueWidth, ByteBuffer bytes) Creates a trie from its binary form.final CodePointTrie.TypegetType()Returns the trie type.stringIterator(CharSequence s, int sIndex) Returns an iterator (not a java.util.Iterator) over code points of a string for fetching map values.abstract intsuppGet(int c) Returns a trie value for a supplementary code point (U+10000..U+10FFFF), without range checking.Methods inherited from class CodePointTrie
asciiGet, fastIndex, fromBinary, get, 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.FAST.- Parameters:
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 CodePointTrie- Returns:
- the trie
-
getType
Description copied from class:CodePointTrieReturns the trie type.- Specified by:
getTypein classCodePointTrie- Returns:
CodePointTrie.Type.FAST
-
bmpGet
public abstract 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.- Parameters:
c- the input code point, must be U+0000..U+FFFF- Returns:
- The BMP code point's trie value.
-
suppGet
public abstract int suppGet(int c) Returns a trie value for a supplementary code point (U+10000..U+10FFFF), without range checking.- Parameters:
c- the input code point, must be U+10000..U+10FFFF- Returns:
- The supplementary code point's trie value.
-
cpIndex
Deprecated.This API is ICU internal only.- Specified by:
cpIndexin classCodePointTrie
-
stringIterator
Returns an iterator (not a java.util.Iterator) over code points of a string for fetching map values.- Overrides:
stringIteratorin classCodePointMap- Parameters:
s- string to iterate oversIndex- string index where the iteration will start- Returns:
- the iterator
-