Class RBBISetBuilder


  • class RBBISetBuilder
    extends java.lang.Object
    • Field Detail

      • 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
    • 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()