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

Method includeCodePoint

src/Kit.ts:783–788  ·  view source on GitHub ↗
(cp: number)

Source from the content-addressed store, hash-verified

781 }
782
783 includeCodePoint(cp: number): boolean {
784 let {found} = bsearch<CharRangeRepr, number>(this.ranges, cp, (cp, range) => {
785 return CharRange.compareCodePointToRange(cp, range);
786 });
787 return found;
788 }
789
790 includeRange(range: CharRangeRepr): boolean {
791 let {found} = bsearch(this.ranges, range, (range, x) => {

Callers 2

includeCharMethod · 0.95
_includeCodePointMethod · 0.80

Calls 1

bsearchFunction · 0.85

Tested by

no test coverage detected