Top Description Fields Constructors Methods
com.ibm.icu.impl.coll

public final Class Collation

extends Object
Class Inheritance

Collation v2 basic definitions and static helper functions. Data structures except for expansion tables store 32-bit CEs which are either specials (see tags below) or are compact forms of 64-bit CEs.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
BEFORE_WEIGHT16

The secondary/tertiary lower limit for tailoring before any root elements.

pack-priv static final int
BUILDER_DATA_TAG

Builder data, used only in the CollationDataBuilder, not in runtime data.

public static final int
CASE_AND_QUATERNARY_MASK

Case bits and quaternary bits.

pack-priv static final int
CASE_AND_TERTIARY_MASK

Case bits and tertiary bits.

public static final int
pack-priv static final int
public static final int
pack-priv static final int
COMMON_BYTE

Default secondary/tertiary weight lead byte.

public static final int
COMMON_SEC_AND_TER_CE

Lower 32 bits of a CE with common secondary and tertiary weights.

pack-priv static final int
COMMON_SECONDARY_CE

Middle 16 bits of a CE with a common secondary weight.

pack-priv static final int
COMMON_TERTIARY_CE

Lower 16 bits of a CE with a common tertiary weight.

public static final int
pack-priv static final int
CONTRACT_NEXT_CCC

Set if the first character of every contraction suffix has lccc!=0.

pack-priv static final int
CONTRACT_SINGLE_CP_NO_MATCH

Set if there is no match for the single (no-suffix) character itself.

pack-priv static final int
CONTRACT_TRAILING_CCC

Set if any contraction suffix ends with lccc!=0.

pack-priv static final int
CONTRACTION_TAG

Points to contraction data.

pack-priv static final int
DIGIT_TAG

Decimal digit.

public static final int
pack-priv static final int
EXPANSION32_TAG

Points to one or more simple/long-primary/long-secondary 32-bit CE32s.

pack-priv static final int
EXPANSION_TAG

Points to one or more 64-bit CEs.

pack-priv static final int
pack-priv static final int
FALLBACK_TAG

Fall back to the base collator.

pack-priv static final int
public static final long
pack-priv static final long
pack-priv static final long
FIRST_UNASSIGNED_PRIMARY

First unassigned: AlphabeticIndex overflow boundary.

public static final int
pack-priv static final int
HANGUL_NO_SPECIAL_JAMO

For HANGUL_TAG: None of its Jamo CE32s isSpecialCE32().

pack-priv static final int
HANGUL_TAG

Tag for a Hangul syllable.

public static final int
pack-priv static final int
pack-priv static final int
IMPLICIT_TAG

Implicit CE tag.

pack-priv static final int
LATIN_EXPANSION_TAG

Latin mini expansions of two simple CEs [pp, 05, tt] [00, ss, 05].

pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
LEAD_SURROGATE_TAG

Tag for a lead surrogate code unit.

pack-priv static final int
public static final int
public static final int
pack-priv static final int
LONG_PRIMARY_CE32_LOW_BYTE

Low byte of a long-primary special CE32.

pack-priv static final int
LONG_PRIMARY_TAG

Long-primary CE with COMMON_SEC_AND_TER_CE.

pack-priv static final int
LONG_SECONDARY_TAG

Long-secondary CE with zero primary.

pack-priv static final int
MAX_EXPANSION_LENGTH

We limit the number of CEs in an expansion so that we can use a small number of length bits in the data structure, and so that an implementation can copy CEs at runtime without growing a destination buffer.

pack-priv static final int
public static final long
pack-priv static final int
public static final int
MERGE_SEPARATOR_BYTE

Merge-sort-key separator.

pack-priv static final int
public static final long
public static final long
pack-priv static final int
pack-priv static final long
NO_CE_PRIMARY

No CE: End of input.

pack-priv static final int
public static final int
NO_LEVEL

Unspecified level.

pack-priv static final int
NO_LEVEL_FLAG

Sort key level flags: xx_FLAG = 1 << xx_LEVEL.

pack-priv static final int
OFFSET_TAG

Tag for CEs with primary weights in code point order.

pack-priv static final int
ONLY_SEC_TER_MASK

Only the secondary & tertiary bits; no case, no quaternary.

public static final int
ONLY_TERTIARY_MASK

Only the 2*6 bits for the pure tertiary weight.

pack-priv static final int
PREFIX_TAG

Points to prefix trie.

public static final int
PRIMARY_COMPRESSION_HIGH_BYTE

Primary compression high terminator.

public static final int
PRIMARY_COMPRESSION_LOW_BYTE

Primary compression low terminator, must be greater than MERGE_SEPARATOR_BYTE.

public static final int
pack-priv static final int
public static final int
pack-priv static final int
public static final int
pack-priv static final int
pack-priv static final int
public static final int
pack-priv static final int
pack-priv static final int
public static final int
SENTINEL_CP

UChar32 U_SENTINEL.

pack-priv static final int
SPECIAL_CE32_LOW_BYTE

A CE32 is special if its low byte is this or greater.

public static final int
public static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
U0000_TAG

Tag for U+0000, for moving the NUL-termination handling from the regular fastpath into specials-handling code.

pack-priv static final int
pack-priv static final int
public static final int
ZERO_LEVEL

Beyond sort key bytes.

pack-priv static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
ce32HasContext(int ce32)

pack-priv static long
ceFromCE32(int ce32)

Returns a 64-bit CE from a simple/long-primary/long-secondary CE32.

pack-priv static long
pack-priv static long
pack-priv static long
ceFromSimpleCE32(int ce32)

Returns a 64-bit CE from a simple CE32 (not special).

pack-priv static long
decThreeBytePrimaryByOneStep(long basePrimary, boolean isCompressible, int step)

Decrements a 3-byte primary by one range step (1..0x7f).

pack-priv static long
decTwoBytePrimaryByOneStep(long basePrimary, boolean isCompressible, int step)

Decrements a 2-byte primary by one range step (1..0x7f).

pack-priv static char
digitFromCE32(int ce32)

Returns the digit value from a DIGIT_TAG ce32.

pack-priv static long
getThreeBytePrimaryForOffsetData(int c, long dataCE)

Computes a 3-byte primary for c's OFFSET_TAG data "CE".

pack-priv static boolean
hasCE32Tag(int ce32, int tag)

public static long
incThreeBytePrimaryByOffset(long basePrimary, boolean isCompressible, int offset)

Increments a 3-byte primary by a code point offset.

public static long
incTwoBytePrimaryByOffset(long basePrimary, boolean isCompressible, int offset)

Increments a 2-byte primary by a code point offset.

pack-priv static int
indexFromCE32(int ce32)

Returns the data index from a special CE32.

pack-priv static boolean
isAssignedCE32(int ce32)

pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
isPrefixCE32(int ce32)

pack-priv static boolean

Returns:

true if the ce32 yields one or more CEs without further data lookups
isSelfContainedCE32
(int ce32)

pack-priv static boolean
pack-priv static boolean
isSpecialCE32(int ce32)

pack-priv static long
latinCE0FromCE32(int ce32)

Get the first of the two Latin-expansion CEs encoded in ce32.

pack-priv static long
latinCE1FromCE32(int ce32)

Get the second of the two Latin-expansion CEs encoded in ce32.

pack-priv static int
lengthFromCE32(int ce32)

Returns the data length from a ce32.

public static long
makeCE(long p)

Creates a CE from a primary weight.

pack-priv static long
makeCE(long p, int s, int t, int q)

Creates a CE from a primary weight, 16-bit secondary/tertiary weights, and a 2-bit quaternary.

pack-priv static int
makeCE32FromTagAndIndex(int tag, int index)

Makes a special CE32 with only tag and index.

pack-priv static int
makeCE32FromTagIndexAndLength(int tag, int index, int length)

Makes a special CE32 with tag, index and length.

pack-priv static int
pack-priv static int
makeLongSecondaryCE32(int lower32)

pack-priv static long
primaryFromLongPrimaryCE32(int ce32)

Turns the long-primary CE32 into a primary weight pppppp00.

pack-priv static int
tagFromCE32(int ce32)

pack-priv static long
pack-priv static long
unassignedPrimaryFromCodePoint(int c)

Returns the unassigned-character implicit primary weight for any valid code point c.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BEFORE_WEIGHT16back to summary
pack-priv static final int BEFORE_WEIGHT16

The secondary/tertiary lower limit for tailoring before any root elements.

BUILDER_DATA_TAGback to summary
pack-priv static final int BUILDER_DATA_TAG

Builder data, used only in the CollationDataBuilder, not in runtime data. If bit 8 is 0: Builder context, points to a list of context-sensitive mappings. Bits 31..13: Index to the builder's list of ConditionalCE32 for this character. Bits 12.. 9: Unused, 0. If bit 8 is 1 (IS_BUILDER_JAMO_CE32): Builder-only jamoCE32 value. The builder fetches the Jamo CE32 from the trie. Bits 31..13: Jamo code point. Bits 12.. 9: Unused, 0.

CASE_AND_QUATERNARY_MASKback to summary
public static final int CASE_AND_QUATERNARY_MASK

Case bits and quaternary bits.

CASE_AND_TERTIARY_MASKback to summary
pack-priv static final int CASE_AND_TERTIARY_MASK

Case bits and tertiary bits.

CASE_LEVELback to summary
public static final int CASE_LEVEL
CASE_LEVEL_FLAGback to summary
pack-priv static final int CASE_LEVEL_FLAG
CASE_MASKback to summary
public static final int CASE_MASK
COMMON_BYTEback to summary
pack-priv static final int COMMON_BYTE

Default secondary/tertiary weight lead byte.

COMMON_SEC_AND_TER_CEback to summary
public static final int COMMON_SEC_AND_TER_CE

Lower 32 bits of a CE with common secondary and tertiary weights.

COMMON_SECONDARY_CEback to summary
pack-priv static final int COMMON_SECONDARY_CE

Middle 16 bits of a CE with a common secondary weight.

COMMON_TERTIARY_CEback to summary
pack-priv static final int COMMON_TERTIARY_CE

Lower 16 bits of a CE with a common tertiary weight.

COMMON_WEIGHT16back to summary
public static final int COMMON_WEIGHT16
CONTRACT_NEXT_CCCback to summary
pack-priv static final int CONTRACT_NEXT_CCC

Set if the first character of every contraction suffix has lccc!=0.

CONTRACT_SINGLE_CP_NO_MATCHback to summary
pack-priv static final int CONTRACT_SINGLE_CP_NO_MATCH

Set if there is no match for the single (no-suffix) character itself. This is only possible if there is a prefix. In this case, discontiguous contraction matching cannot add combining marks starting from an empty suffix. The default CE32 is used anyway if there is no suffix match.

CONTRACT_TRAILING_CCCback to summary
pack-priv static final int CONTRACT_TRAILING_CCC

Set if any contraction suffix ends with lccc!=0.

CONTRACTION_TAGback to summary
pack-priv static final int CONTRACTION_TAG

Points to contraction data. Bits 31..13: Index into prefix/contraction data. Bits 12..11: Unused, 0. Bit 10: CONTRACT_TRAILING_CCC flag. Bit 9: CONTRACT_NEXT_CCC flag. Bit 8: CONTRACT_SINGLE_CP_NO_MATCH flag.

DIGIT_TAGback to summary
pack-priv static final int DIGIT_TAG

Decimal digit. Bits 31..13: Index into int table for non-numeric-collation CE32. Bit 12: Unused, 0. Bits 11.. 8: Digit value 0..9.

EQUALback to summary
public static final int EQUAL
EXPANSION32_TAGback to summary
pack-priv static final int EXPANSION32_TAG

Points to one or more simple/long-primary/long-secondary 32-bit CE32s. Bits 31..13: Index into int table. Bits 12.. 8: Length=1..31.

EXPANSION_TAGback to summary
pack-priv static final int EXPANSION_TAG

Points to one or more 64-bit CEs. Bits 31..13: Index into CE table. Bits 12.. 8: Length=1..31.

FALLBACK_CE32back to summary
pack-priv static final int FALLBACK_CE32
FALLBACK_TAGback to summary
pack-priv static final int FALLBACK_TAG

Fall back to the base collator. This is the tag value in SPECIAL_CE32_LOW_BYTE and FALLBACK_CE32. Bits 31..8: Unused, 0.

FFFD_CE32back to summary
pack-priv static final int FFFD_CE32
FFFD_PRIMARYback to summary
public static final long FFFD_PRIMARY
FIRST_TRAILING_PRIMARYback to summary
pack-priv static final long FIRST_TRAILING_PRIMARY
FIRST_UNASSIGNED_PRIMARYback to summary
pack-priv static final long FIRST_UNASSIGNED_PRIMARY

First unassigned: AlphabeticIndex overflow boundary. We want a 3-byte primary so that it fits into the root elements table. This 3-byte primary will not collide with any unassigned-implicit 4-byte primaries because the first few hundred Unicode code points all have real mappings.

GREATERback to summary
public static final int GREATER
HANGUL_NO_SPECIAL_JAMOback to summary
pack-priv static final int HANGUL_NO_SPECIAL_JAMO

For HANGUL_TAG: None of its Jamo CE32s isSpecialCE32().

HANGUL_TAGback to summary
pack-priv static final int HANGUL_TAG

Tag for a Hangul syllable. Bits 31..9: Unused, 0. Bit 8: HANGUL_NO_SPECIAL_JAMO flag.

IDENTICAL_LEVELback to summary
public static final int IDENTICAL_LEVEL
IDENTICAL_LEVEL_FLAGback to summary
pack-priv static final int IDENTICAL_LEVEL_FLAG
IMPLICIT_TAGback to summary
pack-priv static final int IMPLICIT_TAG

Implicit CE tag. Compute an unassigned-implicit CE. All bits are set (UNASSIGNED_CE32=0xffffffff).

LATIN_EXPANSION_TAGback to summary
pack-priv static final int LATIN_EXPANSION_TAG

Latin mini expansions of two simple CEs [pp, 05, tt] [00, ss, 05]. Bits 31..24: Single-byte primary weight pp of the first CE. Bits 23..16: Tertiary weight tt of the first CE. Bits 15.. 8: Secondary weight ss of the second CE.

LEAD_ALL_FALLBACKback to summary
pack-priv static final int LEAD_ALL_FALLBACK
LEAD_ALL_UNASSIGNEDback to summary
pack-priv static final int LEAD_ALL_UNASSIGNED
LEAD_MIXEDback to summary
pack-priv static final int LEAD_MIXED
LEAD_SURROGATE_TAGback to summary
pack-priv static final int LEAD_SURROGATE_TAG

Tag for a lead surrogate code unit. Optional optimization for UTF-16 string processing. Bits 31..10: Unused, 0. 9.. 8: =0: All associated supplementary code points are unassigned-implicit. =1: All associated supplementary code points fall back to the base data. else: (Normally 2) Look up the data for the supplementary code point.

LEAD_TYPE_MASKback to summary
pack-priv static final int LEAD_TYPE_MASK
LESSback to summary
public static final int LESS
LEVEL_SEPARATOR_BYTEback to summary
public static final int LEVEL_SEPARATOR_BYTE
LONG_PRIMARY_CE32_LOW_BYTEback to summary
pack-priv static final int LONG_PRIMARY_CE32_LOW_BYTE

Low byte of a long-primary special CE32.

LONG_PRIMARY_TAGback to summary
pack-priv static final int LONG_PRIMARY_TAG

Long-primary CE with COMMON_SEC_AND_TER_CE. Bits 31..8: Three-byte primary.

LONG_SECONDARY_TAGback to summary
pack-priv static final int LONG_SECONDARY_TAG

Long-secondary CE with zero primary. Bits 31..16: Secondary weight. Bits 15.. 8: Tertiary weight.

MAX_EXPANSION_LENGTHback to summary
pack-priv static final int MAX_EXPANSION_LENGTH

We limit the number of CEs in an expansion so that we can use a small number of length bits in the data structure, and so that an implementation can copy CEs at runtime without growing a destination buffer.

MAX_INDEXback to summary
pack-priv static final int MAX_INDEX
MAX_PRIMARYback to summary
public static final long MAX_PRIMARY
MAX_REGULAR_CE32back to summary
pack-priv static final int MAX_REGULAR_CE32
MERGE_SEPARATOR_BYTEback to summary
public static final int MERGE_SEPARATOR_BYTE

Merge-sort-key separator. Same as the unique primary and identical-level weights of U+FFFE. Must not be used as primary compression low terminator. Otherwise usable.

MERGE_SEPARATOR_CE32back to summary
pack-priv static final int MERGE_SEPARATOR_CE32
MERGE_SEPARATOR_PRIMARYback to summary
public static final long MERGE_SEPARATOR_PRIMARY
NO_CEback to summary
public static final long NO_CE
NO_CE32back to summary
pack-priv static final int NO_CE32
NO_CE_PRIMARYback to summary
pack-priv static final long NO_CE_PRIMARY

No CE: End of input. Only used in runtime code, not stored in data.

NO_CE_WEIGHT16back to summary
pack-priv static final int NO_CE_WEIGHT16
NO_LEVELback to summary
public static final int NO_LEVEL

Unspecified level.

NO_LEVEL_FLAGback to summary
pack-priv static final int NO_LEVEL_FLAG

Sort key level flags: xx_FLAG = 1 << xx_LEVEL. In Java, use enum Level with flag() getters, or use EnumSet rather than hand-made bit sets.

OFFSET_TAGback to summary
pack-priv static final int OFFSET_TAG

Tag for CEs with primary weights in code point order. Bits 31..13: Index into CE table, for one data "CE". Bits 12.. 8: Unused, 0. This data "CE" has the following bit fields: Bits 63..32: Three-byte primary pppppp00. 31.. 8: Start/base code point of the in-order range. 7: Flag isCompressible primary. 6.. 0: Per-code point primary-weight increment.

ONLY_SEC_TER_MASKback to summary
pack-priv static final int ONLY_SEC_TER_MASK

Only the secondary & tertiary bits; no case, no quaternary.

ONLY_TERTIARY_MASKback to summary
public static final int ONLY_TERTIARY_MASK

Only the 2*6 bits for the pure tertiary weight.

PREFIX_TAGback to summary
pack-priv static final int PREFIX_TAG

Points to prefix trie. Bits 31..13: Index into prefix/contraction data. Bits 12.. 8: Unused, 0.

PRIMARY_COMPRESSION_HIGH_BYTEback to summary
public static final int PRIMARY_COMPRESSION_HIGH_BYTE

Primary compression high terminator. Reserved value in primary second byte if the lead byte is compressible. Otherwise usable in all CE weight bytes.

PRIMARY_COMPRESSION_LOW_BYTEback to summary
public static final int PRIMARY_COMPRESSION_LOW_BYTE

Primary compression low terminator, must be greater than MERGE_SEPARATOR_BYTE. Reserved value in primary second byte if the lead byte is compressible. Otherwise usable in all CE weight bytes.

PRIMARY_LEVELback to summary
public static final int PRIMARY_LEVEL
PRIMARY_LEVEL_FLAGback to summary
pack-priv static final int PRIMARY_LEVEL_FLAG
QUATERNARY_LEVELback to summary
public static final int QUATERNARY_LEVEL
QUATERNARY_LEVEL_FLAGback to summary
pack-priv static final int QUATERNARY_LEVEL_FLAG
QUATERNARY_MASKback to summary
public static final int QUATERNARY_MASK
RESERVED_TAG_3back to summary
pack-priv static final int RESERVED_TAG_3

Unused. May be used in the future for single-byte secondary CEs (SHORT_SECONDARY_TAG), storing the secondary in bits 31..24, the ccc in bits 23..16, and the tertiary in bits 15..8.

SECONDARY_AND_CASE_MASKback to summary
pack-priv static final int SECONDARY_AND_CASE_MASK
SECONDARY_LEVELback to summary
public static final int SECONDARY_LEVEL
SECONDARY_LEVEL_FLAGback to summary
pack-priv static final int SECONDARY_LEVEL_FLAG
SECONDARY_MASKback to summary
pack-priv static final int SECONDARY_MASK
SENTINEL_CPback to summary
public static final int SENTINEL_CP

UChar32 U_SENTINEL.

Todo

Create a common, public constant?

SPECIAL_CE32_LOW_BYTEback to summary
pack-priv static final int SPECIAL_CE32_LOW_BYTE

A CE32 is special if its low byte is this or greater. Impossible case bits 11 mark special CE32s. This value itself is used to indicate a fallback to the base collator.

TERMINATOR_BYTEback to summary
public static final int TERMINATOR_BYTE
TERTIARY_LEVELback to summary
public static final int TERTIARY_LEVEL
TERTIARY_LEVEL_FLAGback to summary
pack-priv static final int TERTIARY_LEVEL_FLAG
TRAIL_WEIGHT_BYTEback to summary
pack-priv static final int TRAIL_WEIGHT_BYTE
U0000_TAGback to summary
pack-priv static final int U0000_TAG

Tag for U+0000, for moving the NUL-termination handling from the regular fastpath into specials-handling code. Bits 31..8: Unused, 0.

UNASSIGNED_CE32back to summary
pack-priv static final int UNASSIGNED_CE32
UNASSIGNED_IMPLICIT_BYTEback to summary
pack-priv static final int UNASSIGNED_IMPLICIT_BYTE
ZERO_LEVELback to summary
public static final int ZERO_LEVEL

Beyond sort key bytes.

ZERO_LEVEL_FLAGback to summary
pack-priv static final int ZERO_LEVEL_FLAG

Constructor Detail

Collationback to summary
public Collation()

Method Detail

ce32HasContextback to summary
pack-priv static boolean ce32HasContext(int ce32)
ceFromCE32back to summary
pack-priv static long ceFromCE32(int ce32)

Returns a 64-bit CE from a simple/long-primary/long-secondary CE32.

ceFromLongPrimaryCE32back to summary
pack-priv static long ceFromLongPrimaryCE32(int ce32)
ceFromLongSecondaryCE32back to summary
pack-priv static long ceFromLongSecondaryCE32(int ce32)
ceFromSimpleCE32back to summary
pack-priv static long ceFromSimpleCE32(int ce32)

Returns a 64-bit CE from a simple CE32 (not special).

decThreeBytePrimaryByOneStepback to summary
pack-priv static long decThreeBytePrimaryByOneStep(long basePrimary, boolean isCompressible, int step)

Decrements a 3-byte primary by one range step (1..0x7f).

decTwoBytePrimaryByOneStepback to summary
pack-priv static long decTwoBytePrimaryByOneStep(long basePrimary, boolean isCompressible, int step)

Decrements a 2-byte primary by one range step (1..0x7f).

digitFromCE32back to summary
pack-priv static char digitFromCE32(int ce32)

Returns the digit value from a DIGIT_TAG ce32.

getThreeBytePrimaryForOffsetDataback to summary
pack-priv static long getThreeBytePrimaryForOffsetData(int c, long dataCE)

Computes a 3-byte primary for c's OFFSET_TAG data "CE".

hasCE32Tagback to summary
pack-priv static boolean hasCE32Tag(int ce32, int tag)
incThreeBytePrimaryByOffsetback to summary
public static long incThreeBytePrimaryByOffset(long basePrimary, boolean isCompressible, int offset)

Increments a 3-byte primary by a code point offset.

incTwoBytePrimaryByOffsetback to summary
public static long incTwoBytePrimaryByOffset(long basePrimary, boolean isCompressible, int offset)

Increments a 2-byte primary by a code point offset.

indexFromCE32back to summary
pack-priv static int indexFromCE32(int ce32)

Returns the data index from a special CE32.

isAssignedCE32back to summary
pack-priv static boolean isAssignedCE32(int ce32)
isContractionCE32back to summary
pack-priv static boolean isContractionCE32(int ce32)
isLongPrimaryCE32back to summary
pack-priv static boolean isLongPrimaryCE32(int ce32)
isPrefixCE32back to summary
pack-priv static boolean isPrefixCE32(int ce32)
isSelfContainedCE32back to summary
pack-priv static boolean isSelfContainedCE32(int ce32)
Returns:boolean

true if the ce32 yields one or more CEs without further data lookups

isSimpleOrLongCE32back to summary
pack-priv static boolean isSimpleOrLongCE32(int ce32)
isSpecialCE32back to summary
pack-priv static boolean isSpecialCE32(int ce32)
latinCE0FromCE32back to summary
pack-priv static long latinCE0FromCE32(int ce32)

Get the first of the two Latin-expansion CEs encoded in ce32.

See Also
LATIN_EXPANSION_TAG
latinCE1FromCE32back to summary
pack-priv static long latinCE1FromCE32(int ce32)

Get the second of the two Latin-expansion CEs encoded in ce32.

See Also
LATIN_EXPANSION_TAG
lengthFromCE32back to summary
pack-priv static int lengthFromCE32(int ce32)

Returns the data length from a ce32.

makeCEback to summary
public static long makeCE(long p)

Creates a CE from a primary weight.

makeCEback to summary
pack-priv static long makeCE(long p, int s, int t, int q)

Creates a CE from a primary weight, 16-bit secondary/tertiary weights, and a 2-bit quaternary.

makeCE32FromTagAndIndexback to summary
pack-priv static int makeCE32FromTagAndIndex(int tag, int index)

Makes a special CE32 with only tag and index.

makeCE32FromTagIndexAndLengthback to summary
pack-priv static int makeCE32FromTagIndexAndLength(int tag, int index, int length)

Makes a special CE32 with tag, index and length.

makeLongPrimaryCE32back to summary
pack-priv static int makeLongPrimaryCE32(long p)
makeLongSecondaryCE32back to summary
pack-priv static int makeLongSecondaryCE32(int lower32)
primaryFromLongPrimaryCE32back to summary
pack-priv static long primaryFromLongPrimaryCE32(int ce32)

Turns the long-primary CE32 into a primary weight pppppp00.

tagFromCE32back to summary
pack-priv static int tagFromCE32(int ce32)
unassignedCEFromCodePointback to summary
pack-priv static long unassignedCEFromCodePoint(int c)
unassignedPrimaryFromCodePointback to summary
pack-priv static long unassignedPrimaryFromCodePoint(int c)

Returns the unassigned-character implicit primary weight for any valid code point c.