MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / match

Method match

src/common/buffer.ts:22–28  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

20 }
21
22 match(s: string): boolean {
23 let i = this.pos;
24 for (let j = 0; j < s.length; j++) if (this.s[i++] !== s[j]) return false;
25
26 this.pos += s.length;
27 return true;
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected