MCPcopy Index your code
hub / github.com/dunglas/httpsfv / scanWhileOWS

Method scanWhileOWS

decode.go:49–58  ·  view source on GitHub ↗

scanWhileOWS consumes optional white space (OWS) characters.

()

Source from the content-addressed store, hash-verified

47
48// scanWhileOWS consumes optional white space (OWS) characters.
49func (s *scanner) scanWhileOWS() {
50 for !s.eof() {
51 c := s.data[s.off]
52 if c != ' ' && c != '\t' {
53 return
54 }
55
56 s.off++
57 }
58}
59
60// eof returns true if the parser consumed all available characters.
61func (s *scanner) eof() bool {

Callers 2

parseDictionaryFunction · 0.80
parseListFunction · 0.80

Calls 1

eofMethod · 0.95

Tested by

no test coverage detected