MCPcopy Create free account
hub / github.com/dolthub/doltgresql / PeekMatch

Method PeekMatch

testing/generation/command_docs/scanner.go:74–76  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
74func (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.

Callers 1

ProcessMethod · 0.95

Calls 1

PeekMatchOffsetMethod · 0.95

Tested by

no test coverage detected