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

pack-priv final Class CollationFastLatinBuilder

extends Object
Class Inheritance
Imports
com.ibm.icu.lang.UScript, com.ibm.icu.text.Collator, com.ibm.icu.util.CharsTrie

Field Summary

Modifier and TypeField and Description
private long
private long
private long[][]
private static final long
private UVector64
private long
private long
private long
private int
private long
pack-priv long[]
private char[]
miniCEs

One 16-bit mini CE per unique CE.

private static final int
private StringBuilder
private boolean
private UVector64

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
addContractionEntry(int x, long cce0, long cce1)

private void
addUniqueCE(long ce)

private static final int

Returns:

the index>=0 where the item was found, or the index<0 for inserting the string at ~index in sorted order
binarySearch
(long[] list, int limit, long ce)

Like Java Collections.binarySearch(List, String, Comparator).

private static final int
compareInt64AsUnsigned(long a, long b)

Compare two signed long values as if they were unsigned.

private void
private void
private int
encodeTwoCEs(long first, long second)

private void
pack-priv boolean
private void
private boolean
getCEsFromCE32(CollationData data, int c, int ce32)

private boolean
pack-priv char[]
private int
getMiniCE(long ce)

pack-priv char[]
private boolean
inSameGroup(long p, long q)

private static boolean
private boolean
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ce0back to summary
private long ce0
ce1back to summary
private long ce1
charCEsback to summary
private long[][] charCEs
CONTRACTION_FLAGback to summary
private static final long CONTRACTION_FLAG
contractionCEsback to summary
private UVector64 contractionCEs
firstDigitPrimaryback to summary
private long firstDigitPrimary
firstLatinPrimaryback to summary
private long firstLatinPrimary
firstShortPrimaryback to summary
private long firstShortPrimary
headerLengthback to summary
private int headerLength
lastLatinPrimaryback to summary
private long lastLatinPrimary
lastSpecialPrimariesback to summary
pack-priv long[] lastSpecialPrimaries
miniCEsback to summary
private char[] miniCEs

One 16-bit mini CE per unique CE.

NUM_SPECIAL_GROUPSback to summary
private static final int NUM_SPECIAL_GROUPS
resultback to summary
private StringBuilder result
shortPrimaryOverflowback to summary
private boolean shortPrimaryOverflow
uniqueCEsback to summary
private UVector64 uniqueCEs

Constructor Detail

CollationFastLatinBuilderback to summary
pack-priv CollationFastLatinBuilder()

Method Detail

addContractionEntryback to summary
private void addContractionEntry(int x, long cce0, long cce1)
addUniqueCEback to summary
private void addUniqueCE(long ce)
binarySearchback to summary
private static final int binarySearch(long[] list, int limit, long ce)

Like Java Collections.binarySearch(List, String, Comparator).

Returns:int

the index>=0 where the item was found, or the index<0 for inserting the string at ~index in sorted order

compareInt64AsUnsignedback to summary
private static final int compareInt64AsUnsigned(long a, long b)

Compare two signed long values as if they were unsigned.

encodeCharCEsback to summary
private void encodeCharCEs()
encodeContractionsback to summary
private void encodeContractions()
encodeTwoCEsback to summary
private int encodeTwoCEs(long first, long second)
encodeUniqueCEsback to summary
private void encodeUniqueCEs()
forDataback to summary
pack-priv boolean forData(CollationData data)
getCEsback to summary
private void getCEs(CollationData data)
getCEsFromCE32back to summary
private boolean getCEsFromCE32(CollationData data, int c, int ce32)
getCEsFromContractionCE32back to summary
private boolean getCEsFromContractionCE32(CollationData data, int ce32)
getHeaderback to summary
pack-priv char[] getHeader()
getMiniCEback to summary
private int getMiniCE(long ce)
getTableback to summary
pack-priv char[] getTable()
inSameGroupback to summary
private boolean inSameGroup(long p, long q)
isContractionCharCEback to summary
private static boolean isContractionCharCE(long ce)
loadGroupsback to summary
private boolean loadGroups(CollationData data)
resetCEsback to summary
private void resetCEs()