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

Method AcceptUntil

strings.go:157–161  ·  view source on GitHub ↗

AcceptUntil accepts any runes until the rune provided is encountered

(r rune)

Source from the content-addressed store, hash-verified

155// AcceptUntil accepts any runes until the rune provided is
156// encountered
157func (s *stringLexer) AcceptUntil(r rune) {
158 for s.Next() != r && !s.done {
159 }
160 s.Backup()
161}
162
163// AcceptRun accepts runes until encountering a rune not
164// in the set of valid runes provided

Callers 1

DecodeStringFunction · 0.80

Calls 2

NextMethod · 0.95
BackupMethod · 0.95

Tested by

no test coverage detected