lv_txt_utf8_next() function
Decode an UTF-8 character from a string.
Syntax
static uint32_t lv_txt_utf8_next(const char * txt,
uint32_t * i);
Arguments
txt
pointer to '\0' terminated string
i
start byte index in 'txt' where to start. After call it will point to the next UTF-8 char in 'txt'. NULL to use txt[0] as index
Return value
the decoded Unicode character or 0 on invalid UTF-8 code