pub fn peekCodepoint(it: *Utf8Iterator) ?u21
Look ahead at the next codepoint without advancing the iterator. If no codepoints exist, then returns null.
it: *Utf8Iterator
431 432 433 434 435 436
pub fn peekCodepoint(it: *Utf8Iterator) ?u21 { const original_i = it.i; defer it.i = original_i; return it.nextCodepoint(); }
Look ahead at the next codepoint without advancing the iterator. If no codepoints exist, then returns null.