Package com.ibm.icu.impl.coll
Class CollationFastLatinBuilder
java.lang.Object
com.ibm.icu.impl.coll.CollationFastLatinBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private long
private long[][]
private static final long
private UVector64
private long
private long
private long
private int
private long
(package private) long[]
private char[]
One 16-bit mini CE per unique CE.private static final int
private StringBuilder
private boolean
private UVector64
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addContractionEntry
(int x, long cce0, long cce1) private void
addUniqueCE
(long ce) private static final int
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
(package private) boolean
forData
(CollationData data) private void
getCEs
(CollationData data) private boolean
getCEsFromCE32
(CollationData data, int c, int ce32) private boolean
getCEsFromContractionCE32
(CollationData data, int ce32) (package private) char[]
private int
getMiniCE
(long ce) (package private) char[]
getTable()
private boolean
inSameGroup
(long p, long q) private static boolean
isContractionCharCE
(long ce) private boolean
loadGroups
(CollationData data) private void
resetCEs()
-
Field Details
-
NUM_SPECIAL_GROUPS
private static final int NUM_SPECIAL_GROUPS- See Also:
-
CONTRACTION_FLAG
private static final long CONTRACTION_FLAG- See Also:
-
ce0
private long ce0 -
ce1
private long ce1 -
charCEs
private long[][] charCEs -
contractionCEs
-
uniqueCEs
-
miniCEs
private char[] miniCEsOne 16-bit mini CE per unique CE. -
lastSpecialPrimaries
long[] lastSpecialPrimaries -
firstDigitPrimary
private long firstDigitPrimary -
firstLatinPrimary
private long firstLatinPrimary -
lastLatinPrimary
private long lastLatinPrimary -
firstShortPrimary
private long firstShortPrimary -
shortPrimaryOverflow
private boolean shortPrimaryOverflow -
result
-
headerLength
private int headerLength
-
-
Constructor Details
-
CollationFastLatinBuilder
CollationFastLatinBuilder()
-
-
Method Details
-
compareInt64AsUnsigned
private static final int compareInt64AsUnsigned(long a, long b) Compare two signed long values as if they were unsigned. -
binarySearch
private static final int binarySearch(long[] list, int limit, long ce) Like Java Collections.binarySearch(List, String, Comparator).- Returns:
- the index>=0 where the item was found, or the index<0 for inserting the string at ~index in sorted order
-
forData
-
getHeader
char[] getHeader() -
getTable
char[] getTable() -
loadGroups
-
inSameGroup
private boolean inSameGroup(long p, long q) -
resetCEs
private void resetCEs() -
getCEs
-
getCEsFromCE32
-
getCEsFromContractionCE32
-
addContractionEntry
private void addContractionEntry(int x, long cce0, long cce1) -
addUniqueCE
private void addUniqueCE(long ce) -
getMiniCE
private int getMiniCE(long ce) -
encodeUniqueCEs
private void encodeUniqueCEs() -
encodeCharCEs
private void encodeCharCEs() -
encodeContractions
private void encodeContractions() -
encodeTwoCEs
private int encodeTwoCEs(long first, long second) -
isContractionCharCE
private static boolean isContractionCharCE(long ce)
-