MCPcopy Create free account
hub / github.com/donatj/sqlread / until

Method until

scanner.go:169–180  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

167}
168
169func (l *lexer) until(b byte) bool {
170 for {
171 n := l.next()
172 if n == eof {
173 return false
174 }
175
176 if n == b {
177 return true
178 }
179 }
180}
181
182func Lex(input io.ReaderAt) (*lexer, chan LexItem) {
183 l := &lexer{

Callers 2

untilSemiStateBuilderFunction · 0.80
untilNewlineStateBuilderFunction · 0.80

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected