| Modifier and Type | Field and Description |
|---|---|
| public CollationData | base
Base collation data, or null if this data itself is a base. |
| pack-priv int[] | ce32s
Array of CE32 values. |
| pack-priv long[] | ces
Array of CE values for expansions and OFFSET_TAG. |
| public boolean[] | compressibleBytes
256 flags for which primary-weight lead bytes are compressible. |
| pack-priv String | contexts
Array of prefix and contraction-suffix matching data. |
| private static final int[] | |
| public char[] | fastLatinTable
Fast Latin table for common-Latin-text string comparisons. |
| pack-priv char[] | fastLatinTableHeader
Header portion of the fastLatinTable. |
| pack-priv static final int | |
| pack-priv int[] | jamoCE32s
Simple array of JAMO_CE32S_LENGTH=19+21+27 CE32s, one per canonical Jamo L/V/T. |
| pack-priv static final int | |
| public Normalizer2Impl | |
| pack-priv long | numericPrimary
The single-byte primary weight (xx000000) for numeric collation. |
| pack-priv int | numScripts
Data for scripts and reordering groups. |
| pack-priv static final int | |
| pack-priv static final int | |
| public long[] | rootElements
Collation elements in the root collator. |
| pack-priv char[] | scriptsIndex
The length of scriptsIndex is numScripts+16. |
| pack-priv char[] | scriptStarts
Start primary weight (top 16 bits only) for a group/script/reserved range indexed by scriptsIndex. |
| pack-priv Trie2_32 | trie
Main lookup trie. |
| pack-priv UnicodeSet | unsafeBackwardSet
Set of code points that are unsafe for starting string comparison after an identical prefix, or in backwards CE iteration. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private int | |
| public int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv long | |
| public int[] | |
| pack-priv int | |
| pack-priv int | getFinalCE32(int ce32)
Returns the CE32 for an indirect special CE32 (e.g., with DIGIT_TAG), if ce32 is special. |
| pack-priv long | Returns: the primary with only the first primary lead byte of the group (not necessarily an actual root collator primary weight), or 0 if the script is unknownReturns the first primary for the script's reordering group. |
| public int | Returns: the first script of the group, or -1 if the weight is beyond the last groupFinds the reordering group which contains the primary weight. |
| pack-priv int | |
| public long | Returns: the last primary of the group (not an actual root collator primary weight), or 0 if the script is unknownReturns the last primary for the script's reordering group. |
| private int | |
| pack-priv long | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| pack-priv void | makeReorderRanges(int[] reorder, UVector32 ranges)
Writes the permutation of primary-weight ranges for the given reordering of scripts and groups. |
| private void | |
| private static String |
| base | back to summary |
|---|---|
| public CollationData base Base collation data, or null if this data itself is a base. | |
| ce32s | back to summary |
|---|---|
| pack-priv int[] ce32s Array of CE32 values. At index 0 there must be CE32(U+0000) to support U+0000's special-tag for NUL-termination handling. | |
| ces | back to summary |
|---|---|
| pack-priv long[] ces Array of CE values for expansions and OFFSET_TAG. | |
| compressibleBytes | back to summary |
|---|---|
| public boolean[] compressibleBytes 256 flags for which primary-weight lead bytes are compressible. | |
| contexts | back to summary |
|---|---|
| pack-priv String contexts Array of prefix and contraction-suffix matching data. | |
| EMPTY_INT_ARRAY | back to summary |
|---|---|
| private static final int[] EMPTY_INT_ARRAY | |
| fastLatinTable | back to summary |
|---|---|
| public char[] fastLatinTable Fast Latin table for common-Latin-text string comparisons. Data structure see class CollationFastLatin. | |
| fastLatinTableHeader | back to summary |
|---|---|
| pack-priv char[] fastLatinTableHeader Header portion of the fastLatinTable. In C++, these are one array, and the header is skipped for mapping characters. In Java, two arrays work better. | |
| JAMO_CE32S_LENGTH | back to summary |
|---|---|
pack-priv static final int JAMO_CE32S_LENGTH
| |
| jamoCE32s | back to summary |
|---|---|
| pack-priv int[] jamoCE32s Simple array of JAMO_CE32S_LENGTH=19+21+27 CE32s, one per canonical Jamo L/V/T. They are normally simple CE32s, rarely expansions. For fast handling of HANGUL_TAG. | |
| MAX_NUM_SPECIAL_REORDER_CODES | back to summary |
|---|---|
| pack-priv static final int MAX_NUM_SPECIAL_REORDER_CODES | |
| nfcImpl | back to summary |
|---|---|
| public Normalizer2Impl nfcImpl | |
| numericPrimary | back to summary |
|---|---|
| pack-priv long numericPrimary The single-byte primary weight (xx000000) for numeric collation. | |
| numScripts | back to summary |
|---|---|
| pack-priv int numScripts Data for scripts and reordering groups. Uses include building a reordering permutation table and providing script boundaries to AlphabeticIndex. | |
| REORDER_RESERVED_AFTER_LATIN | back to summary |
|---|---|
| pack-priv static final int REORDER_RESERVED_AFTER_LATIN | |
| REORDER_RESERVED_BEFORE_LATIN | back to summary |
|---|---|
| pack-priv static final int REORDER_RESERVED_BEFORE_LATIN | |
| rootElements | back to summary |
|---|---|
| public long[] rootElements Collation elements in the root collator. Used by the CollationRootElements class. The data structure is described there. null in a tailoring. | |
| scriptsIndex | back to summary |
|---|---|
| pack-priv char[] scriptsIndex The length of scriptsIndex is numScripts+16. It maps from a UScriptCode or a special reorder code to an entry in scriptStarts. 16 special reorder codes (not all used) are mapped starting at numScripts. Up to MAX_NUM_SPECIAL_REORDER_CODES are codes for special groups like space/punct/digit. There are special codes at the end for reorder-reserved primary ranges. Multiple scripts may share a range and index, for example Hira & Kana. | |
| scriptStarts | back to summary |
|---|---|
| pack-priv char[] scriptStarts Start primary weight (top 16 bits only) for a group/script/reserved range indexed by scriptsIndex. The first range (separators & terminators) and the last range (trailing weights) are not reorderable, and no scriptsIndex entry points to them. | |
| trie | back to summary |
|---|---|
| pack-priv Trie2_32 trie Main lookup trie. | |
| unsafeBackwardSet | back to summary |
|---|---|
| pack-priv UnicodeSet unsafeBackwardSet Set of code points that are unsafe for starting string comparison after an identical prefix, or in backwards CE iteration. | |
| CollationData | back to summary |
|---|---|
| pack-priv CollationData(Normalizer2Impl nfc) | |
| addHighScriptRange | back to summary |
|---|---|
| private int addHighScriptRange(short[] table, int index, int highLimit) | |
| addLowScriptRange | back to summary |
|---|---|
| private int addLowScriptRange(short[] table, int index, int lowStart) | |
| getCE32 | back to summary |
|---|---|
| public int getCE32(int c) | |
| getCE32FromContexts | back to summary |
|---|---|
| pack-priv int getCE32FromContexts(int index) Returns the CE32 from two contexts words. Access to the defaultCE32 for contraction and prefix matching. | |
| getCE32FromSupplementary | back to summary |
|---|---|
| pack-priv int getCE32FromSupplementary(int c) | |
| getCEFromOffsetCE32 | back to summary |
|---|---|
| pack-priv long getCEFromOffsetCE32(int c, int ce32) Computes a CE from c's ce32 which has the OFFSET_TAG. | |
| getEquivalentScripts | back to summary |
|---|---|
| public int[] getEquivalentScripts(int script) | |
| getFCD16 | back to summary |
|---|---|
| pack-priv int getFCD16(int c) Returns the FCD16 value for code point c. c must be >= 0. | |
| getFinalCE32 | back to summary |
|---|---|
| pack-priv int getFinalCE32(int ce32) Returns the CE32 for an indirect special CE32 (e.g., with DIGIT_TAG), if ce32 is special. | |
| getFirstPrimaryForGroup | back to summary |
|---|---|
| pack-priv long getFirstPrimaryForGroup(int script) Returns the first primary for the script's reordering group.
| |
| getGroupForPrimary | back to summary |
|---|---|
| public int getGroupForPrimary(long p) Finds the reordering group which contains the primary weight.
| |
| getIndirectCE32 | back to summary |
|---|---|
| pack-priv int getIndirectCE32(int ce32) Returns the CE32 for an indirect special CE32 (e.g., with DIGIT_TAG). Requires that ce32 is special. | |
| getLastPrimaryForGroup | back to summary |
|---|---|
| public long getLastPrimaryForGroup(int script) Returns the last primary for the script's reordering group.
| |
| getScriptIndex | back to summary |
|---|---|
| private int getScriptIndex(int script) | |
| getSingleCE | back to summary |
|---|---|
| pack-priv long getSingleCE(int c) Returns the single CE that c maps to. Throws UnsupportedOperationException if c does not map to a single CE. | |
| isCompressibleLeadByte | back to summary |
|---|---|
| public boolean isCompressibleLeadByte(int b) | |
| isCompressiblePrimary | back to summary |
|---|---|
| public boolean isCompressiblePrimary(long p) | |
| isDigit | back to summary |
|---|---|
| pack-priv boolean isDigit(int c) | |
| isUnsafeBackward | back to summary |
|---|---|
| public boolean isUnsafeBackward(int c, boolean numeric) | |
| makeReorderRanges | back to summary |
|---|---|
| pack-priv void makeReorderRanges(int[] reorder, UVector32 ranges) Writes the permutation of primary-weight ranges for the given reordering of scripts and groups. The caller checks for illegal arguments and takes care of [DEFAULT] and memory allocation. Each list element will be a (limit, offset) pair as described for the CollationSettings.reorderRanges. The list will be empty if no ranges are reordered. | |
| makeReorderRanges | back to summary |
|---|---|
| private void makeReorderRanges(int[] reorder, boolean latinMustMove, UVector32 ranges) | |
| scriptCodeString | back to summary |
|---|---|
| private static String scriptCodeString(int script) | |