Class RBBIRuleBuilder


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

      • fDebugEnv

        java.lang.String fDebugEnv
      • fRules

        java.lang.String fRules
      • fStrippedRules

        java.lang.StringBuilder fStrippedRules
      • fDefaultTree

        int fDefaultTree
      • fChainRules

        boolean fChainRules
      • fLookAheadHardBreak

        boolean fLookAheadHardBreak
      • fUSetNodes

        java.util.List<RBBINode> fUSetNodes
      • fStatusSets

        java.util.Map<java.util.Set<java.lang.Integer>,​java.lang.Integer> fStatusSets
      • fRuleStatusVals

        java.util.List<java.lang.Integer> fRuleStatusVals
      • U_BRK_ERROR_START

        static final int U_BRK_ERROR_START
        < Character conversion: Illegal input sequence/combination of input units.
        See Also:
        Constant Field Values
      • U_BRK_INTERNAL_ERROR

        static final int U_BRK_INTERNAL_ERROR
        < Start of codes indicating Break Iterator failures
        See Also:
        Constant Field Values
      • U_BRK_HEX_DIGITS_EXPECTED

        static final int U_BRK_HEX_DIGITS_EXPECTED
        < An internal error (bug) was detected.
        See Also:
        Constant Field Values
      • U_BRK_SEMICOLON_EXPECTED

        static final int U_BRK_SEMICOLON_EXPECTED
        < Hex digits expected as part of a escaped char in a rule.
        See Also:
        Constant Field Values
      • U_BRK_RULE_SYNTAX

        static final int U_BRK_RULE_SYNTAX
        < Missing ';' at the end of a RBBI rule.
        See Also:
        Constant Field Values
      • U_BRK_UNCLOSED_SET

        static final int U_BRK_UNCLOSED_SET
        < Syntax error in RBBI rule.
        See Also:
        Constant Field Values
      • U_BRK_ASSIGN_ERROR

        static final int U_BRK_ASSIGN_ERROR
        < UnicodeSet writing an RBBI rule missing a closing ']'.
        See Also:
        Constant Field Values
      • U_BRK_VARIABLE_REDFINITION

        static final int U_BRK_VARIABLE_REDFINITION
        < Syntax error in RBBI rule assignment statement.
        See Also:
        Constant Field Values
      • U_BRK_MISMATCHED_PAREN

        static final int U_BRK_MISMATCHED_PAREN
        < RBBI rule $Variable redefined.
        See Also:
        Constant Field Values
      • U_BRK_NEW_LINE_IN_QUOTED_STRING

        static final int U_BRK_NEW_LINE_IN_QUOTED_STRING
        < Mis-matched parentheses in an RBBI rule.
        See Also:
        Constant Field Values
      • U_BRK_UNDEFINED_VARIABLE

        static final int U_BRK_UNDEFINED_VARIABLE
        < Missing closing quote in an RBBI rule.
        See Also:
        Constant Field Values
      • U_BRK_INIT_ERROR

        static final int U_BRK_INIT_ERROR
        < Use of an undefined $Variable in an RBBI rule.
        See Also:
        Constant Field Values
      • U_BRK_RULE_EMPTY_SET

        static final int U_BRK_RULE_EMPTY_SET
        < Initialization failure. Probable missing ICU Data.
        See Also:
        Constant Field Values
      • U_BRK_UNRECOGNIZED_OPTION

        static final int U_BRK_UNRECOGNIZED_OPTION
        < Rule contains an empty Unicode Set.
        See Also:
        Constant Field Values
      • U_BRK_MALFORMED_RULE_TAG

        static final int U_BRK_MALFORMED_RULE_TAG
        < !!option in RBBI rules not recognized.
        See Also:
        Constant Field Values
      • U_BRK_MALFORMED_SET

        static final int U_BRK_MALFORMED_SET
        < The {nnn} tag on a rule is mal formed
        See Also:
        Constant Field Values
    • Constructor Detail

      • RBBIRuleBuilder

        RBBIRuleBuilder​(java.lang.String rules)
        < This must always be the last value to indicate the limit for Break Iterator failures
    • Method Detail

      • align8

        static final int align8​(int i)
      • flattenData

        void flattenData​(java.io.OutputStream os)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • compileRules

        static void compileRules​(java.lang.String rules,
                                 java.io.OutputStream os)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • build

        void build​(java.io.OutputStream os)
            throws java.io.IOException
        Compile rules to the binary form, write that to an output stream.
        Throws:
        java.io.IOException
      • optimizeTables

        void optimizeTables()