The source string.
Current position in the source string.
The source string.
The current character.
The line containing the current character.
Whether the current position is reached the end of the source string.
Whether the current position is within the string bounds.
The length of the source string.
The location of the current character.
The next character.
The substring from the current position to the end of the source string.
Checks whether the current position is within the string bounds.
Checks whether the current position is reached the end of the source string.
The offset relative the current position.
Returns the first matched lexeme, and undefined otherwise.
Lexemes to match with.
The offset relative to the current position.
Returns the first presenting lexeme, and undefined otherwise.
Lexemes to check for.
The offset relative to the current position.
Checks whether a lexeme is present at the current position of the source string.
One or more lexemes to look for.
The offset relative to the current position.
Matches a lexeme at the current position of the source string. I.e if a lexeme is present, moves the stream by the length of the lexeme.
One or more lexemes to match.
The offset relative to the current position.
Whether a lexeme was matched.
Matches a regex pattern with the rest of the source string.
A regular expression to match with.
The offset relative to the current value.
Adjusts the current position by the specified value.
The offset to move by.
New position.
Sets the current position.
The new position.
New position.
Returns the current character from the source string.
The offset relative to the current position.
Returns the source substring of the specified length staring from current position with an offset.
The number of characters to peek.
The offset relative to the current position.
Returns the source substring from the current position to the specified one. The substring includes the characters up to, but not including, the character indicated by end.
The zero-based index number to peek to. If this value is not specified, the substring continues to the end of the source string.
The offset relative to the current position
Sets the current position to 0.
Returns a section of the source string.
The index to the beginning of the specified portion of the source string.
The index to the end of the specified portion of the source string. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of the source string.
Checks whether a regex pattern exists in the rest of the source string.
One or more regular expressions to test for.
The offset relative to the current position.
Generated using TypeDoc
Class for traversing and analyzing strings.