Module gui::gui_utf8
GUI: UTF-8 helpers shared by the window layer, the text engine and the widgets (and usable on their own).
Functions
| gui_utf8_next | gui_utf8_next() decodes the codepoint starting at byte *i of s[0..len) and advances *i past it (malformed or truncated sequences, overlongs and surrogates decode as U+FFFD, one byte at a time); gui_utf8_encode() writes cp's 1-4 bytes to out[0..4) and returns how many; gui_utf8_prev() returns the start of the codepoint before byte i (0 at the start). |
| gui_utf8_encode | |
| gui_utf8_prev |