| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | CollationDataBuilder.CEModifier
Collation element modifier. |
| private static class | CollationDataBuilder.ConditionalCE32
Build-time context and CE32 for a code point. |
| private static class | |
| private static class | CollationDataBuilder.DataBuilderCollationIterator
Build-time collation element and character iterator. |
| Modifier and Type | Field and Description |
|---|---|
| protected CollationData | |
| protected CollationSettings | |
| protected UVector32 | |
| protected UVector64 | |
| protected CollationDataBuilder. | |
| protected ArrayList | |
| protected UnicodeSet | |
| protected StringBuilder | |
| private int | contextsEra
The "era" of building intermediate contexts. |
| protected CollationFastLatinBuilder | |
| protected boolean | |
| private static final int | |
| protected boolean | |
| protected Normalizer2Impl | |
| protected Trie2Writable | |
| protected UnicodeSet |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| protected int | |
| pack-priv void | |
| protected int | |
| protected int | |
| protected int | |
| pack-priv void | |
| protected int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected int | copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, CollationDataBuilder.
Copies base contractions to a list of ConditionalCE32. |
| pack-priv void | copyFrom(CollationDataBuilder src, CollationDataBuilder.
Copies all mappings from the src builder, with modifications. |
| protected int | |
| pack-priv void | |
| pack-priv int | encodeCEs(long[] ces, int cesLength)
Encodes the ces as either the returned ce32 by itself, or by storing an expansion, with the returned ce32 referring to that. |
| protected int | |
| protected int | |
| protected int | |
| protected static int | |
| private static void | |
| protected int | |
| pack-priv int | Returns: incremented cesLengthLooks up CEs for s and appends them to the ces array. |
| pack-priv int | |
| protected int | |
| protected CollationDataBuilder. | |
| protected CollationDataBuilder. | |
| protected boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| protected static boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| protected final boolean | |
| protected static int | |
| protected static int | |
| pack-priv void | |
| protected void | |
| protected void | |
| pack-priv void |
| base | back to summary |
|---|---|
| protected CollationData base | |
| baseSettings | back to summary |
|---|---|
| protected CollationSettings baseSettings | |
| ce32s | back to summary |
|---|---|
| protected UVector32 ce32s | |
| ce64s | back to summary |
|---|---|
| protected UVector64 ce64s | |
| collIter | back to summary |
|---|---|
| protected CollationDataBuilder. | |
| conditionalCE32s | back to summary |
|---|---|
| protected ArrayList<CollationDataBuilder. | |
| contextChars | back to summary |
|---|---|
| protected UnicodeSet contextChars | |
| contexts | back to summary |
|---|---|
| protected StringBuilder contexts | |
| contextsEra | back to summary |
|---|---|
| private int contextsEra The "era" of building intermediate contexts.
When the array of cached, temporary contexts overflows, then clearContexts()
removes them all and invalidates the builtCE32 that used to point to built tries.
See | |
| fastLatinBuilder | back to summary |
|---|---|
| protected CollationFastLatinBuilder fastLatinBuilder | |
| fastLatinEnabled | back to summary |
|---|---|
| protected boolean fastLatinEnabled | |
| IS_BUILDER_JAMO_CE32 | back to summary |
|---|---|
private static final int IS_BUILDER_JAMO_CE32
| |
| modified | back to summary |
|---|---|
| protected boolean modified | |
| nfcImpl | back to summary |
|---|---|
| protected Normalizer2Impl nfcImpl | |
| trie | back to summary |
|---|---|
| protected Trie2Writable trie | |
| unsafeBackwardSet | back to summary |
|---|---|
| protected UnicodeSet unsafeBackwardSet | |
| CollationDataBuilder | back to summary |
|---|---|
| pack-priv CollationDataBuilder() | |
| add | back to summary |
|---|---|
| pack-priv void add(CharSequence prefix, CharSequence s, long[] ces, int cesLength) | |
| addCE | back to summary |
|---|---|
| protected int addCE(long ce) | |
| addCE32 | back to summary |
|---|---|
| pack-priv void addCE32(CharSequence prefix, CharSequence s, int ce32) | |
| addCE32 | back to summary |
|---|---|
| protected int addCE32(int ce32) | |
| addConditionalCE32 | back to summary |
|---|---|
| protected int addConditionalCE32(String context, int ce32) | |
| addContextTrie | back to summary |
|---|---|
| protected int addContextTrie(int defaultCE32, CharsTrieBuilder trieBuilder) | |
| build | back to summary |
|---|---|
| pack-priv void build(CollationData data) | |
| buildContext | back to summary |
|---|---|
| protected int buildContext(CollationDataBuilder. | |
| buildContexts | back to summary |
|---|---|
| protected void buildContexts() | |
| buildFastLatinTable | back to summary |
|---|---|
| protected void buildFastLatinTable(CollationData data) | |
| buildMappings | back to summary |
|---|---|
| protected void buildMappings(CollationData data) | |
| clearContexts | back to summary |
|---|---|
| protected void clearContexts() | |
| copyContractionsFromBaseCE32 | back to summary |
|---|---|
| protected int copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, CollationDataBuilder. Copies base contractions to a list of ConditionalCE32. Sets cond.next to the index of the first new item and returns the index of the last new item. | |
| copyFrom | back to summary |
|---|---|
| pack-priv void copyFrom(CollationDataBuilder src, CollationDataBuilder. Copies all mappings from the src builder, with modifications. This builder here must not be built yet, and should be empty. | |
| copyFromBaseCE32 | back to summary |
|---|---|
| protected int copyFromBaseCE32(int c, int ce32, boolean withContext) | |
| enableFastLatin | back to summary |
|---|---|
| pack-priv void enableFastLatin() | |
| encodeCEs | back to summary |
|---|---|
| pack-priv int encodeCEs(long[] ces, int cesLength) Encodes the ces as either the returned ce32 by itself, or by storing an expansion, with the returned ce32 referring to that. add(p, s, ces, cesLength) = addCE32(p, s, encodeCEs(ces, cesLength)) | |
| encodeExpansion | back to summary |
|---|---|
| protected int encodeExpansion(long[] ces, int start, int length) | |
| encodeExpansion32 | back to summary |
|---|---|
| protected int encodeExpansion32(int[] newCE32s, int start, int length) | |
| encodeOneCE | back to summary |
|---|---|
| protected int encodeOneCE(long ce) | |
| encodeOneCEAsCE32 | back to summary |
|---|---|
| protected static int encodeOneCEAsCE32(long ce) | |
| enumRangeForCopy | back to summary |
|---|---|
| private static void enumRangeForCopy(int start, int end, int value, CollationDataBuilder. | |
| getCE32FromOffsetCE32 | back to summary |
|---|---|
| protected int getCE32FromOffsetCE32(boolean fromBase, int c, int ce32) | |
| getCEs | back to summary |
|---|---|
| pack-priv int getCEs(CharSequence s, long[] ces, int cesLength) Looks up CEs for s and appends them to the ces array. Does not handle normalization: s should be in FCD form. Does not write completely ignorable CEs. Does not write beyond Collation.MAX_EXPANSION_LENGTH.
| |
| getCEs | back to summary |
|---|---|
| pack-priv int getCEs(CharSequence prefix, CharSequence s, long[] ces, int cesLength) | |
| getCEs | back to summary |
|---|---|
| protected int getCEs(CharSequence s, int start, long[] ces, int cesLength) | |
| getConditionalCE32 | back to summary |
|---|---|
| protected CollationDataBuilder. | |
| getConditionalCE32ForCE32 | back to summary |
|---|---|
| protected CollationDataBuilder. | |
| getJamoCE32s | back to summary |
|---|---|
| protected boolean getJamoCE32s(int[] jamoCE32s) | |
| hasMappings | back to summary |
|---|---|
pack-priv boolean hasMappings()
| |
| initForTailoring | back to summary |
|---|---|
| pack-priv void initForTailoring(CollationData b) | |
| isAssigned | back to summary |
|---|---|
pack-priv boolean isAssigned(int c)
| |
| isBuilderContextCE32 | back to summary |
|---|---|
| protected static boolean isBuilderContextCE32(int ce32) | |
| isCompressibleLeadByte | back to summary |
|---|---|
| pack-priv boolean isCompressibleLeadByte(int b) | |
| isCompressiblePrimary | back to summary |
|---|---|
| pack-priv boolean isCompressiblePrimary(long p) | |
| isMutable | back to summary |
|---|---|
| protected final boolean isMutable() | |
| jamoCpFromIndex | back to summary |
|---|---|
| protected static int jamoCpFromIndex(int i) | |
| makeBuilderContextCE32 | back to summary |
|---|---|
| protected static int makeBuilderContextCE32(int index) | |
| optimize | back to summary |
|---|---|
| pack-priv void optimize(UnicodeSet set) | |
| setDigitTags | back to summary |
|---|---|
| protected void setDigitTags() | |
| setLeadSurrogates | back to summary |
|---|---|
| protected void setLeadSurrogates() | |
| suppressContractions | back to summary |
|---|---|
| pack-priv void suppressContractions(UnicodeSet set) | |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | modifyCE32(int ce32)
Returns a new CE to replace the non-special input CE32, or else Collation.NO_CE. |
| modifyCE | back to summary |
|---|---|
| public long modifyCE(long ce) Returns a new CE to replace the input CE, or else Collation.NO_CE. | |
| modifyCE32 | back to summary |
|---|---|
| public long modifyCE32(int ce32) Returns a new CE to replace the non-special input CE32, or else Collation.NO_CE. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | builtCE32
CE32 for the built contexts. |
| pack-priv int | ce32
CE32 for the code point and its context. |
| pack-priv String | context
"\0" for the first entry for any code point, with its default CE32. |
| pack-priv int | defaultCE32
Default CE32 for all contexts with this same prefix. |
| pack-priv int | era
The "era" of building intermediate contexts when the above builtCE32 was set. |
| pack-priv int | next
Index of the next ConditionalCE32. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv int |
| builtCE32 | back to summary |
|---|---|
| pack-priv int builtCE32 CE32 for the built contexts. When fetching CEs from the builder, the contexts are built into their runtime form so that the normal collation implementation can process them. The result is cached in the list head. It is reset when the contexts are modified. All of these builtCE32 are invalidated by clearContexts(), via incrementing the contextsEra. | |
| ce32 | back to summary |
|---|---|
| pack-priv int ce32 CE32 for the code point and its context. Can be special (e.g., for an expansion) but not contextual (prefix or contraction tag). | |
| context | back to summary |
|---|---|
| pack-priv String context "\0" for the first entry for any code point, with its default CE32. Otherwise one unit with the length of the prefix string, then the prefix string, then the contraction suffix. | |
| defaultCE32 | back to summary |
|---|---|
| pack-priv int defaultCE32 Default CE32 for all contexts with this same prefix. Initially NO_CE32. Set only while building runtime data structures, and only on one of the nodes of a sub-list with the same prefix. | |
| era | back to summary |
|---|---|
| pack-priv int era The "era" of building intermediate contexts when the above builtCE32 was set. When the array of cached, temporary contexts overflows, then clearContexts() removes them all and invalidates the builtCE32 that used to point to built tries. | |
| next | back to summary |
|---|---|
| pack-priv int next Index of the next ConditionalCE32. Negative for the end of the list. | |
| ConditionalCE32 | back to summary |
|---|---|
| pack-priv ConditionalCE32(String ct, int ce) | |
| hasContext | back to summary |
|---|---|
| pack-priv boolean hasContext() | |
| prefixLength | back to summary |
|---|---|
| pack-priv int prefixLength() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CollationDataBuilder | |
| pack-priv long[] | |
| pack-priv CollationDataBuilder. | |
| pack-priv CollationDataBuilder |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv void |
| dest | back to summary |
|---|---|
| pack-priv CollationDataBuilder dest | |
| modifiedCEs | back to summary |
|---|---|
| pack-priv long[] modifiedCEs | |
| modifier | back to summary |
|---|---|
| pack-priv CollationDataBuilder. | |
| src | back to summary |
|---|---|
| pack-priv CollationDataBuilder src | |
| CopyHelper | back to summary |
|---|---|
| pack-priv CopyHelper(CollationDataBuilder s, CollationDataBuilder d, CollationDataBuilder. | |
| copyCE32 | back to summary |
|---|---|
| pack-priv int copyCE32(int ce32) | |
| copyRangeCE32 | back to summary |
|---|---|
| pack-priv void copyRangeCE32(int start, int end, int ce32) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final CollationDataBuilder | |
| protected final CollationData | |
| protected final int[] | |
| protected int | |
| protected CharSequence |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | backwardNumCodePoints(int num)
Implements abstract com. |
| pack-priv int | |
| protected void | forwardNumCodePoints(int num)
Implements abstract com. |
| protected int | getCE32FromBuilderData(int ce32)
Overrides com. |
| protected int | getDataCE32(int c)
Overrides com. |
| public int | |
| public int | nextCodePoint()
Implements abstract com. |
| public int | previousCodePoint()
Implements abstract com. |
| public void | resetToOffset(int newOffset)
Implements abstract com. |
| builder | back to summary |
|---|---|
| protected final CollationDataBuilder builder | |
| builderData | back to summary |
|---|---|
| protected final CollationData builderData | |
| jamoCE32s | back to summary |
|---|---|
| protected final int[] jamoCE32s | |
| pos | back to summary |
|---|---|
| protected int pos | |
| s | back to summary |
|---|---|
| protected CharSequence s | |
| DataBuilderCollationIterator | back to summary |
|---|---|
| pack-priv DataBuilderCollationIterator(CollationDataBuilder b, CollationData newData) | |
| backwardNumCodePoints | back to summary |
|---|---|
| protected void backwardNumCodePoints(int num) Implements abstract com.
| |
| fetchCEs | back to summary |
|---|---|
| pack-priv int fetchCEs(CharSequence str, int start, long[] ces, int cesLength) | |
| forwardNumCodePoints | back to summary |
|---|---|
| protected void forwardNumCodePoints(int num) Implements abstract com.
| |
| getCE32FromBuilderData | back to summary |
|---|---|
| protected int getCE32FromBuilderData(int ce32) Overrides com.
| |
| getDataCE32 | back to summary |
|---|---|
| protected int getDataCE32(int c) Overrides com. Doc from com. Returns the CE32 from the data trie. Normally the same as data.getCE32(), but overridden in the builder. Call this only when the faster data.getCE32() cannot be used.
| |
| getOffset | back to summary |
|---|---|
| public int getOffset() Implements abstract com.
| |
| nextCodePoint | back to summary |
|---|---|
| public int nextCodePoint() Implements abstract com. Doc from com. Returns the next code point (with post-increment). Public for identical-level comparison and for testing.
| |
| previousCodePoint | back to summary |
|---|---|
| public int previousCodePoint() Implements abstract com. Doc from com. Returns the previous code point (with pre-decrement). Public for identical-level comparison and for testing.
| |
| resetToOffset | back to summary |
|---|---|
| public void resetToOffset(int newOffset) Implements abstract com. Doc from com. Resets the iterator state and sets the position to the specified offset. Subclasses must implement, and must call the parent class method, or CollationIterator.reset().
| |