Class PatternStringParser.ParserState

java.lang.Object
com.ibm.icu.impl.number.PatternStringParser.ParserState
Enclosing class:
PatternStringParser

private static class PatternStringParser.ParserState extends Object
An internal class used for tracking the cursor during parsing of a pattern string.
  • Field Details

    • pattern

      final String pattern
    • offset

      int offset
  • Constructor Details

    • ParserState

      ParserState(String pattern)
  • Method Details

    • peek

      int peek()
      Returns the next code point, or -1 if string is too short.
    • peek2

      int peek2()
      Returns the code point after the next code point, or -1 if string is too short.
    • next

      int next()
      Returns the next code point and then steps forward.
    • toParseException

      IllegalArgumentException toParseException(String message)