MCPcopy Create free account
hub / github.com/denoland/std / skipOWS

Function skipOWS

http/unstable_structured_fields.ts:537–541  ·  view source on GitHub ↗

Skip optional whitespace (SP or HTAB)

(state: ParserState)

Source from the content-addressed store, hash-verified

535
536/** Skip optional whitespace (SP or HTAB) */
537function skipOWS(state: ParserState): void {
538 while (!isEof(state) && (peek(state) === " " || peek(state) === "\t")) {
539 state.pos++;
540 }
541}
542
543/** Skip required whitespace (at least one SP) */
544function skipSP(state: ParserState): void {

Callers 2

parseListInternalFunction · 0.85
parseDictionaryInternalFunction · 0.85

Calls 2

isEofFunction · 0.85
peekFunction · 0.85

Tested by

no test coverage detected