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

Function toCodePoints

src/Kit.ts:672–680  ·  view source on GitHub ↗
(range: CharRangeRepr, maxCount = Infinity)

Source from the content-addressed store, hash-verified

670 }
671
672 export function toCodePoints(range: CharRangeRepr, maxCount = Infinity): number[] {
673 let r1 = begin(range);
674 let r2 = end(range);
675 let a = [];
676 while (r1 <= r2 && a.length < maxCount) {
677 a.push(r1++);
678 }
679 return a;
680 }
681}
682
683/**

Callers

nothing calls this directly

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected