Top Inners Fields Constructors Methods
com.ibm.icu.text

pack-priv Class RBBISetBuilder

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .OutputStream, java.util.ArrayList, .List, com.ibm.icu.impl.Assert, com.ibm.icu.text.RBBIRuleBuilder.IntPair, com.ibm.icu.util.CodePointTrie, .MutableCodePointTrie

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv int
fDictCategoriesStart

The number of the first dictionary char category.

pack-priv CodePointTrie
pack-priv int
fGroupCount

Number of range groups, which are groups of ranges that are in the same original UnicodeSets.

pack-priv RBBISetBuilder.RangeDescriptor
pack-priv RBBIRuleBuilder
pack-priv boolean
pack-priv MutableCodePointTrie
private static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addValToSet(RBBINode usetNode, int val)

pack-priv void
addValToSets(List<RBBINode> sets, int val)

pack-priv void
pack-priv void
buildTrie()

Build the Trie table for mapping UChar32 values to the corresponding range group number.

pack-priv void
pack-priv int
pack-priv int
getFirstChar(int category)

pack-priv int
pack-priv int
pack-priv void
mergeCategories(RBBIRuleBuilder.IntPair
the pair of categories to be merged.
categories
)

Merge two character categories that have been identified as having equivalent behavior.

pack-priv void
pack-priv void
pack-priv void
pack-priv boolean
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fDictCategoriesStartback to summary
pack-priv int fDictCategoriesStart

The number of the first dictionary char category. If there are no Dictionary categories, set to the last category + 1.

fFrozenTrieback to summary
pack-priv CodePointTrie fFrozenTrie
fGroupCountback to summary
pack-priv int fGroupCount

Number of range groups, which are groups of ranges that are in the same original UnicodeSets.

fRangeListback to summary
pack-priv RBBISetBuilder.RangeDescriptor fRangeList
fRBback to summary
pack-priv RBBIRuleBuilder fRB
fSawBOFback to summary
pack-priv boolean fSawBOF
fTrieback to summary
pack-priv MutableCodePointTrie fTrie
MAX_CHAR_CATEGORIES_FOR_8BITS_TRIEback to summary
private static final int MAX_CHAR_CATEGORIES_FOR_8BITS_TRIE

Constructor Detail

RBBISetBuilderback to summary
pack-priv RBBISetBuilder(RBBIRuleBuilder rb)

Method Detail

addValToSetback to summary
pack-priv void addValToSet(RBBINode usetNode, int val)
addValToSetsback to summary
pack-priv void addValToSets(List<RBBINode> sets, int val)
buildRangesback to summary
pack-priv void buildRanges()
buildTrieback to summary
pack-priv void buildTrie()

Build the Trie table for mapping UChar32 values to the corresponding range group number.

freezeTrieIfNotYetback to summary
pack-priv void freezeTrieIfNotYet()
getDictCategoriesStartback to summary
pack-priv int getDictCategoriesStart()
getFirstCharback to summary
pack-priv int getFirstChar(int category)
getNumCharCategoriesback to summary
pack-priv int getNumCharCategories()
getTrieSizeback to summary
pack-priv int getTrieSize()
mergeCategoriesback to summary
pack-priv 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:RBBIRuleBuilder.IntPair

the pair of categories to be merged.

printRangeGroupsback to summary
pack-priv void printRangeGroups()
printRangesback to summary
pack-priv void printRanges()
printSetsback to summary
pack-priv void printSets()
sawBOFback to summary
pack-priv boolean sawBOF()
serializeTrieback to summary
pack-priv void serializeTrie(OutputStream os) throws IOException
com.ibm.icu.text back to summary

pack-priv Class RBBISetBuilder.RangeDescriptor

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv boolean
pack-priv boolean
pack-priv List<RBBINode>
pack-priv RBBISetBuilder.RangeDescriptor
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isDictionaryRange()

Test whether this range includes characters from the original Unicode Set named "dictionary".

pack-priv void
split(int where)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fEndCharback to summary
pack-priv int fEndChar
fFirstInGroupback to summary
pack-priv boolean fFirstInGroup
fIncludesDictback to summary
pack-priv boolean fIncludesDict
fIncludesSetsback to summary
pack-priv List<RBBINode> fIncludesSets
fNextback to summary
pack-priv RBBISetBuilder.RangeDescriptor fNext
fNumback to summary
pack-priv int fNum
fStartCharback to summary
pack-priv int fStartChar

Constructor Detail

RangeDescriptorback to summary
pack-priv RangeDescriptor()
RangeDescriptorback to summary
pack-priv RangeDescriptor(RBBISetBuilder.RangeDescriptor other)

Method Detail

isDictionaryRangeback to summary
pack-priv boolean isDictionaryRange()

Test whether this range includes characters from the original Unicode Set named "dictionary". This function looks through the Unicode Sets that the range includes, checking for one named "dictionary"

splitback to summary
pack-priv void split(int where)