Indicates whether this contexts offset is behind the last character of the input string
Captures a string containing the specified number of characters from the current offset.
Captures a string containing the specified number of characters from the current offset. Throws an exception if the number of characters left is less than the specified number.
The character at the current offset.
The character at the specified offset, relative from the current offset.
Consumes the specified number of characters, returning a new ParserContext
with the new offset.
The full input string, containing the string portions before and after the current offset.
The current position in the input string.
Indicates the number of characters remaining in the input string after the current offset.
Returns a new ParserContext
with the input string being reversed,
but pointing to the same character as this context.
Returns a new ParserContext
with the input string being reversed,
but pointing to the same character as this context.
This is a low-level optimization for parsers that look for strings like
email addresses where the first character is not significant, so that
parsing backwards from any @
encountered in the input provided better
performance.
Represents the state and context of a parsing operation, containing the input string as well as positional information/