Package com.ibm.icu.text
Class RBBISetBuilder
- java.lang.Object
-
- com.ibm.icu.text.RBBISetBuilder
-
class RBBISetBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RBBISetBuilder.RangeDescriptor
-
Field Summary
Fields Modifier and Type Field Description (package private) int
fDictCategoriesStart
The number of the first dictionary char category.(package private) CodePointTrie
fFrozenTrie
(package private) int
fGroupCount
Number of range groups, which are groups of ranges that are in the same original UnicodeSets.(package private) RBBISetBuilder.RangeDescriptor
fRangeList
(package private) RBBIRuleBuilder
fRB
(package private) boolean
fSawBOF
(package private) MutableCodePointTrie
fTrie
private static int
MAX_CHAR_CATEGORIES_FOR_8BITS_TRIE
-
Constructor Summary
Constructors Constructor Description RBBISetBuilder(RBBIRuleBuilder rb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addValToSet(RBBINode usetNode, int val)
(package private) void
addValToSets(java.util.List<RBBINode> sets, int val)
(package private) void
buildRanges()
(package private) void
buildTrie()
Build the Trie table for mapping UChar32 values to the corresponding range group number.(package private) void
freezeTrieIfNotYet()
(package private) int
getDictCategoriesStart()
(package private) int
getFirstChar(int category)
(package private) int
getNumCharCategories()
(package private) int
getTrieSize()
(package private) void
mergeCategories(RBBIRuleBuilder.IntPair categories)
Merge two character categories that have been identified as having equivalent behavior.(package private) void
printRangeGroups()
(package private) void
printRanges()
(package private) void
printSets()
(package private) boolean
sawBOF()
(package private) void
serializeTrie(java.io.OutputStream os)
-
-
-
Field Detail
-
fRB
RBBIRuleBuilder fRB
-
fRangeList
RBBISetBuilder.RangeDescriptor fRangeList
-
fTrie
MutableCodePointTrie fTrie
-
fFrozenTrie
CodePointTrie fFrozenTrie
-
fGroupCount
int fGroupCount
Number of range groups, which are groups of ranges that are in the same original UnicodeSets.
-
fDictCategoriesStart
int fDictCategoriesStart
The 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:
- Constant Field Values
-
-
Constructor Detail
-
RBBISetBuilder
RBBISetBuilder(RBBIRuleBuilder rb)
-
-
Method Detail
-
buildRanges
void buildRanges()
-
buildTrie
void buildTrie()
Build the Trie table for mapping UChar32 values to the corresponding range group number.
-
mergeCategories
void mergeCategories(RBBIRuleBuilder.IntPair categories)
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
void serializeTrie(java.io.OutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
addValToSets
void addValToSets(java.util.List<RBBINode> sets, int val)
-
addValToSet
void addValToSet(RBBINode usetNode, int val)
-
getNumCharCategories
int getNumCharCategories()
-
getDictCategoriesStart
int getDictCategoriesStart()
-
sawBOF
boolean sawBOF()
-
getFirstChar
int getFirstChar(int category)
-
printRanges
void printRanges()
-
printRangeGroups
void printRangeGroups()
-
printSets
void printSets()
-
-