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

Function character

toml/_parser.ts:398–406  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

396}
397
398function character(str: string) {
399 return (scanner: Scanner): ParseResult<void> => {
400 scanner.skipWhitespaces();
401 if (!scanner.startsWith(str)) return failure();
402 scanner.next(str.length);
403 scanner.skipWhitespaces();
404 return success(undefined);
405 };
406}
407
408// -----------------------
409// Parser components

Callers 4

joinFunction · 0.85
join1Function · 0.85
kvFunction · 0.85
surroundFunction · 0.85

Calls 5

failureFunction · 0.85
successFunction · 0.85
startsWithMethod · 0.80
skipWhitespacesMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected