Unicode module

unicode_next_character

procedureSource

A pointer to the byte after the character that starts at s, going by its first byte only. Nothing is checked: a truncated or malformed character at the end of a buffer gives a pointer past the end.

unicode_next_character :: (s: *u8) -> *u8

Parameters

s: *u8

Returns

*u8
Example↗
text := "aé!"; // 'é' takes two bytes
next := unicode_next_character(text.data + 1);
assert(next == text.data + 3);

See also