lv_txt_utf8_get_char_id() function
Convert a byte index (in an UTF-8 text) to character 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_char_id(const char * txt,
uint32_t byte_id);
Arguments
txt
a '\0' terminated UTF-8 string
Return value
character index of the letter at 'byte_id'th position