MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / matchesString

Function matchesString

packages/queryLanguage/src/tokens.ts:44–46  ·  view source on GitHub ↗

* Checks if the input at current position matches the given string.

(input: InputStream, str: string)

Source from the content-addressed store, hash-verified

42 * Checks if the input at current position matches the given string.
43 */
44function matchesString(input: InputStream, str: string): boolean {
45 return matchesStringAt(input, 0, str);
46}
47
48/**
49 * Checks if the input at the given offset matches the given string.

Callers

nothing calls this directly

Calls 1

matchesStringAtFunction · 0.85

Tested by

no test coverage detected