MCPcopy
hub / github.com/kashav/fsql / currentIs

Method currentIs

tokenizer/tokenizer.go:168–175  ·  view source on GitHub ↗

currentIs returns true iff the input's current rune (at index 0) is in runes.

(runes ...rune)

Source from the content-addressed store, hash-verified

166
167// currentIs returns true iff the input's current rune (at index 0) is in runes.
168func (t *Tokenizer) currentIs(runes ...rune) bool {
169 for _, r := range runes {
170 if r == t.current() {
171 return true
172 }
173 }
174 return false
175}
176
177// readWord reads a single word from the input. Returns when the next rune is
178// any of: nil (-1), empty space, comma, single/double quote, backtick,

Callers 4

NextMethod · 0.95
readWordMethod · 0.95
readQueryMethod · 0.95
readUntilMethod · 0.95

Calls 1

currentMethod · 0.95

Tested by

no test coverage detected