blob: bcc72a65a61842b7b230d38457ed30dd7f4b37e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { u32 } from "./diplomat-runtime"
/**
* Result of a single iteration of {@link CodePointRangeIterator `CodePointRangeIterator`}. Logically can be considered to be an `Option<RangeInclusive<u32>>`,
* `start` and `end` represent an inclusive range of code points start, end, and `done` will be true if the iterator has already finished. The last contentful iteration will NOT produce a range done=true, in other words `start` and `end` are useful values if and only if `done=false`.
*/
export class CodePointRangeIteratorResult {
start: u32;
end: u32;
done: boolean;
}
|