lv_txt_utf8_get_length() function
Get the number of characters (and NOT bytes) in a string. Decode it with UTF-8 if enabled. E.g.: "ÁBC" is 3 characters (but 4 bytes)
Syntax
static uint32_t lv_txt_utf8_get_length(const char * txt); Arguments
txt
a '\0' terminated char string
Return value
number of characters
lv_txt_utf8_get_length() calls 1 function:
![]()
lv_txt_utf8_get_length()
lv_txt_utf8_get_length():
![]()
lv_txt_utf8_get_length()
lv_txt_utf8_get_length() is implemented by 1 functions:
![]()
lv_txt_utf8_get_length()