Searched refs:byte_id (Results 1 – 2 of 2) sorted by relevance
328 uint32_t byte_id = _lv_txt_encoded_get_byte_id(txt, char_id); in lv_label_get_letter_pos() local333 if(byte_id < new_line_start || txt[new_line_start] == '\0') in lv_label_get_letter_pos()341 if(byte_id > 0) { in lv_label_get_letter_pos()342 if((txt[byte_id - 1] == '\n' || txt[byte_id - 1] == '\r') && txt[byte_id] == '\0') { in lv_label_get_letter_pos()344 line_start = byte_id; in lv_label_get_letter_pos()356 if(new_line_start == byte_id) { in lv_label_get_letter_pos()357 visual_byte_pos = base_dir == LV_BASE_DIR_RTL ? 0 : byte_id - line_start; in lv_label_get_letter_pos()361 uint32_t line_char_id = _lv_txt_encoded_get_char_id(&txt[line_start], byte_id - line_start); in lv_label_get_letter_pos()373 visual_byte_pos = byte_id - line_start; in lv_label_get_letter_pos()1135 uint32_t byte_id = _lv_txt_encoded_get_byte_id(label->text, letter_id); in lv_label_refr_text() local[all …]
37 static uint32_t lv_txt_utf8_get_char_id(const char * txt, uint32_t byte_id);46 static uint32_t lv_txt_iso8859_1_get_char_id(const char * txt, uint32_t byte_id);719 static uint32_t lv_txt_utf8_get_char_id(const char * txt, uint32_t byte_id) in lv_txt_utf8_get_char_id() argument724 while(i < byte_id) { in lv_txt_utf8_get_char_id()844 static uint32_t lv_txt_iso8859_1_get_char_id(const char * txt, uint32_t byte_id) in lv_txt_iso8859_1_get_char_id() argument847 return byte_id; /*In Non encoded no difference*/ in lv_txt_iso8859_1_get_char_id()