CodePointRangeIteratorResult.d.ts (676B)
1 // generated by diplomat-tool 2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 3 4 5 /** 6 * Result of a single iteration of [`CodePointRangeIterator`]. 7 * Logically can be considered to be an `Option<RangeInclusive<DiplomatChar>>`, 8 * 9 * `start` and `end` represent an inclusive range of code points [start, end], 10 * and `done` will be true if the iterator has already finished. The last contentful 11 * iteration will NOT produce a range done=true, in other words `start` and `end` are useful 12 * values if and only if `done=false`. 13 */ 14 15 16 export class CodePointRangeIteratorResult { 17 get start(): codepoint; 18 get end(): codepoint; 19 get done(): boolean; 20 21 }