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

Method accept

scanner.go:149–167  ·  view source on GitHub ↗
(bs []byte)

Source from the content-addressed store, hash-verified

147}
148
149func (l *lexer) accept(bs []byte) (c int) {
150 for {
151 n := l.next()
152
153 found := false
154 for _, b := range bs {
155 if b == n {
156 found = true
157 break
158 }
159 }
160
161 if !found {
162 l.rewind()
163 return c
164 }
165 c++
166 }
167}
168
169func (l *lexer) until(b byte) bool {
170 for {

Callers 15

StartIntpStateMethod · 0.80
showColumnsIntpStateMethod · 0.80
selectIntpStateMethod · 0.80
selectFromIntpStateMethod · 0.80
StartStateFunction · 0.80
insertValuesStateFunction · 0.80
createTableParamsStateFunction · 0.80
createTableParamStateFunction · 0.80

Calls 2

nextMethod · 0.95
rewindMethod · 0.95

Tested by

no test coverage detected