MCPcopy Create free account
hub / github.com/gobwas/httphead / fetchQuotedString

Method fetchQuotedString

lexer.go:202–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

200}
201
202func (l *Scanner) fetchQuotedString() (ok bool) {
203 l.pos++
204
205 n := ScanUntil(l.data[l.pos:], '"')
206 if n == -1 {
207 l.err = true
208 return false
209 }
210
211 l.itemType = ItemString
212 l.itemBytes = RemoveByte(l.data[l.pos:l.pos+n], '\\')
213 l.pos += n + 1
214
215 return true
216}
217
218func (l *Scanner) fetchComment() (ok bool) {
219 l.pos++

Callers 2

NextMethod · 0.95

Calls 2

ScanUntilFunction · 0.85
RemoveByteFunction · 0.85

Tested by 1