TerminalCompletionMatchRanges
Immutable ordered match ranges relative to one completion display string.
Ranges use UTF-16 offsets and are stored as packed primitive pairs internally. Every range is non-empty, ranges are ordered and non-overlapping, and endpoints are Unicode-scalar boundaries that do not split surrogate pairs. The empty instance is shared; non-empty factories defensively copy caller-owned arrays.
Functions
Link copied to clipboard
Returns an independent packed [start0, end0, ...] array.
Link copied to clipboard
Returns the inclusive UTF-16 start offset of range index.