lv_txt_utf8_get_byte_id() function
Convert a character index (in an UTF-8 text) to byte index. E.g. in "AÁRT" index of 'R' is 2th char but start at byte 3 because 'Á' is 2 bytes long
Syntax
static uint32_t lv_txt_utf8_get_byte_id(const char * txt,
uint32_t utf8_id);
Arguments
txt
a '\0' terminated UTF-8 string
Return value
byte index of the 'utf8_id'th letter