MCPcopy
hub / github.com/BishopFox/jsluice / AcceptRun

Method AcceptRun

strings.go:165–169  ·  view source on GitHub ↗

AcceptRun accepts runes until encountering a rune not in the set of valid runes provided

(valid string)

Source from the content-addressed store, hash-verified

163// AcceptRun accepts runes until encountering a rune not
164// in the set of valid runes provided
165func (s *stringLexer) AcceptRun(valid string) {
166 for strings.ContainsRune(valid, s.Next()) {
167 }
168 s.Backup()
169}
170
171// String returns the unescaped representation of the input
172// that has been lexed so far. Usually it would only be

Callers 1

DecodeStringFunction · 0.80

Calls 2

NextMethod · 0.95
BackupMethod · 0.95

Tested by

no test coverage detected