scanWhileOWS consumes optional white space (OWS) characters.
()
| 47 | |
| 48 | // scanWhileOWS consumes optional white space (OWS) characters. |
| 49 | func (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. |
| 61 | func (s *scanner) eof() bool { |
no test coverage detected