MCPcopy Create free account
hub / github.com/arktypeio/arktype / sliceChars

Method sliceChars

ark/util/scanner.ts:165–167  ·  view source on GitHub ↗
(start: number, end?: number)

Source from the content-addressed store, hash-verified

163 }
164
165 sliceChars(start: number, end?: number): string {
166 return this.chars.slice(start, end).join("")
167 }
168
169 peekIs<char extends peek>(char: char): this is Scanner<char> {
170 return this.peek === char

Callers 3

parseDefaultFunction · 0.80
failFunction · 0.80
parseRightBoundFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected