MCPcopy Create free account
hub / github.com/CJex/regulex / includeCodePoint

Function includeCodePoint

src/Kit.ts:544–546  ·  view source on GitHub ↗
(range: CharRangeRepr, cp: number)

Source from the content-addressed store, hash-verified

542 }
543
544 export function includeCodePoint(range: CharRangeRepr, cp: number): boolean {
545 return begin(range) <= cp && cp <= end(range);
546 }
547
548 export function isSubsetOf(a: CharRangeRepr, b: CharRangeRepr): boolean {
549 return begin(b) <= begin(a) && end(a) <= end(b);

Callers 1

includeCharFunction · 0.85

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected