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

Function consume

http/unstable_structured_fields.ts:532–534  ·  view source on GitHub ↗

Consume current character and advance

(state: ParserState)

Source from the content-addressed store, hash-verified

530
531/** Consume current character and advance */
532function consume(state: ParserState): string {
533 return state.input[state.pos++] ?? "";
534}
535
536/** Skip optional whitespace (SP or HTAB) */
537function skipOWS(state: ParserState): void {

Callers 9

parseListInternalFunction · 0.85
parseDictionaryInternalFunction · 0.85
parseInnerListFunction · 0.85
parseStringFunction · 0.85
parseBinaryFunction · 0.85
parseBooleanFunction · 0.85
parseDateFunction · 0.85
parseDisplayStringFunction · 0.85
parseParametersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected