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

Function skipSP

http/unstable_structured_fields.ts:544–548  ·  view source on GitHub ↗

Skip required whitespace (at least one SP)

(state: ParserState)

Source from the content-addressed store, hash-verified

542
543/** Skip required whitespace (at least one SP) */
544function skipSP(state: ParserState): void {
545 while (!isEof(state) && peek(state) === " ") {
546 state.pos++;
547 }
548}
549
550/**
551 * Parses a List Structured Field value.

Callers 5

parseListFunction · 0.85
parseDictionaryFunction · 0.85
parseItemFunction · 0.85
parseInnerListFunction · 0.85
parseParametersFunction · 0.85

Calls 2

isEofFunction · 0.85
peekFunction · 0.85

Tested by

no test coverage detected