PeekMatch returns whether the given string exactly matches runes starting after the current position. This is equivalent to calling PeekMatchOffset with an offset of 1.
(str string)
| 72 | // PeekMatch returns whether the given string exactly matches runes starting after the current position. This is |
| 73 | // equivalent to calling PeekMatchOffset with an offset of 1. |
| 74 | func (scanner *Scanner) PeekMatch(str string) bool { |
| 75 | return scanner.PeekMatchOffset(str, 1) |
| 76 | } |
| 77 | |
| 78 | // PeekMatchOffset returns whether the given string exactly matches runes starting from the offset applied to the |
| 79 | // current position. An offset of 0 means that we are including the rune at the current position. |
no test coverage detected