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

Function peek

http/unstable_structured_fields.ts:527–529  ·  view source on GitHub ↗

Peek current character

(state: ParserState)

Source from the content-addressed store, hash-verified

525
526/** Peek current character */
527function peek(state: ParserState): string {
528 return state.input[state.pos] ?? "";
529}
530
531/** Consume current character and advance */
532function consume(state: ParserState): string {

Callers 11

skipOWSFunction · 0.85
skipSPFunction · 0.85
parseListInternalFunction · 0.85
parseDictionaryInternalFunction · 0.85
parseItemOrInnerListFunction · 0.85
parseInnerListFunction · 0.85
parseBareItemFunction · 0.85
parseIntegerOrDecimalFunction · 0.85
parseTokenFunction · 0.85
parseKeyFunction · 0.85
parseParametersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected