Class RBBIRuleScanner

java.lang.Object
com.ibm.icu.text.RBBIRuleScanner

class RBBIRuleScanner extends Object
This class is part of the Rule Based Break Iterator rule compiler. It scans the rules and builds the parse tree. There is no public API here.
  • Field Details

    • kStackSize

      private static final int kStackSize
      See Also:
    • fRB

    • fScanIndex

      int fScanIndex
    • fNextIndex

      int fNextIndex
    • fQuoteMode

      boolean fQuoteMode
    • fLineNum

      int fLineNum
    • fCharNum

      int fCharNum
    • fLastChar

      int fLastChar
    • fC

    • fStack

      short[] fStack
    • fStackPtr

      int fStackPtr
    • fNodeStack

      RBBINode[] fNodeStack
    • fNodeStackPtr

      int fNodeStackPtr
    • fReverseRule

      boolean fReverseRule
    • fLookAheadRule

      boolean fLookAheadRule
    • fNoChainInRule

      boolean fNoChainInRule
    • fSymbolTable

      RBBISymbolTable fSymbolTable
    • fSetTable

    • fRuleSets

      UnicodeSet[] fRuleSets
    • fRuleNum

      int fRuleNum
    • fOptionStart

      int fOptionStart
    • gRuleSet_rule_char_pattern

      private static String gRuleSet_rule_char_pattern
    • gRuleSet_name_char_pattern

      private static String gRuleSet_name_char_pattern
    • gRuleSet_digit_char_pattern

      private static String gRuleSet_digit_char_pattern
    • gRuleSet_name_start_char_pattern

      private static String gRuleSet_name_start_char_pattern
    • gRuleSet_white_space_pattern

      private static String gRuleSet_white_space_pattern
    • kAny

      private static String kAny
    • chNEL

      static final int chNEL
      See Also:
    • chLS

      static final int chLS
      See Also:
  • Constructor Details

  • Method Details

    • doParseActions

      boolean doParseActions(int action)
    • error

      void error(int e)
    • fixOpStack

      void fixOpStack(int p)
    • findSetFor

      void findSetFor(String s, RBBINode node, UnicodeSet setToAdopt)
    • stripRules

      static String stripRules(String rules)
    • nextCharLL

      int nextCharLL()
    • nextChar

      void nextChar(RBBIRuleScanner.RBBIRuleChar c)
    • parse

      void parse()
    • printNodeStack

      void printNodeStack(String title)
    • pushNewNode

      RBBINode pushNewNode(int nodeType)
    • scanSet

      void scanSet()
    • numRules

      int numRules()
      Returns:
      the number of rules that have been seen.