class UpperBoundedPattern
extends Pattern
-
-
Constructor Summary
Constructors
-
Method Summary
int
Matches character range against the pattern.
(package private) static int
Methods inherited from class org.jparsec.pattern.Pattern
atLeast, atMost, ifelse, many, many, many1, next, not, optional, or, peek, repeat, some, some, times, times, toScanner
-
Field Details
-
max
private final int max
-
-
Constructor Details
-
UpperBoundedPattern
UpperBoundedPattern(int max,
Pattern pattern)
-
Method Details
-
match
Description copied from class: Pattern
Matches character range against the pattern. The length of the range is end - begin
.
- Specified by:
match
in class Pattern
- Parameters:
src
- the source string.
begin
- the beginning index in the sequence.
end
- the end index of the source string (exclusive).
NOTE: the range is [begin, end)
.
- Returns:
- the number of characters matched. MISMATCH otherwise.
-
-