Package com.ibm.icu.text
Class RBBISetBuilder
java.lang.Object
com.ibm.icu.text.RBBISetBuilder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
The number of the first dictionary char category.(package private) CodePointTrie
(package private) int
Number of range groups, which are groups of ranges that are in the same original UnicodeSets.(package private) RBBISetBuilder.RangeDescriptor
(package private) RBBIRuleBuilder
(package private) boolean
(package private) MutableCodePointTrie
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addValToSet
(RBBINode usetNode, int val) (package private) void
addValToSets
(List<RBBINode> sets, int val) (package private) void
(package private) void
Build the Trie table for mapping UChar32 values to the corresponding range group number.(package private) void
(package private) int
(package private) int
getFirstChar
(int category) (package private) int
(package private) int
(package private) void
mergeCategories
(RBBIRuleBuilder.IntPair categories) Merge two character categories that have been identified as having equivalent behavior.(package private) void
(package private) void
(package private) void
(package private) boolean
sawBOF()
(package private) void
-
Field Details
-
fRB
RBBIRuleBuilder fRB -
fRangeList
RBBISetBuilder.RangeDescriptor fRangeList -
fTrie
MutableCodePointTrie fTrie -
fFrozenTrie
CodePointTrie fFrozenTrie -
fGroupCount
int fGroupCountNumber of range groups, which are groups of ranges that are in the same original UnicodeSets. -
fDictCategoriesStart
int fDictCategoriesStartThe number of the first dictionary char category. If there are no Dictionary categories, set to the last category + 1. -
fSawBOF
boolean fSawBOF -
MAX_CHAR_CATEGORIES_FOR_8BITS_TRIE
private static final int MAX_CHAR_CATEGORIES_FOR_8BITS_TRIE- See Also:
-
-
Constructor Details
-
RBBISetBuilder
RBBISetBuilder(RBBIRuleBuilder rb)
-
-
Method Details
-
buildRanges
void buildRanges() -
buildTrie
void buildTrie()Build the Trie table for mapping UChar32 values to the corresponding range group number. -
mergeCategories
Merge two character categories that have been identified as having equivalent behavior. The ranges belonging to the second category (table column) will be added to the first.- Parameters:
categories
- the pair of categories to be merged.
-
freezeTrieIfNotYet
void freezeTrieIfNotYet() -
getTrieSize
int getTrieSize() -
serializeTrie
- Throws:
IOException
-
addValToSets
-
addValToSet
-
getNumCharCategories
int getNumCharCategories() -
getDictCategoriesStart
int getDictCategoriesStart() -
sawBOF
boolean sawBOF() -
getFirstChar
int getFirstChar(int category) -
printRanges
void printRanges() -
printRangeGroups
void printRangeGroups() -
printSets
void printSets()
-