Lines Matching refs:byte_id
328 uint32_t byte_id = _lv_txt_encoded_get_byte_id(txt, char_id); in lv_label_get_letter_pos() local
333 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
1136 while(byte_id + LV_LABEL_DOT_NUM > txt_len) { in lv_label_refr_text()
1137 _lv_txt_encoded_prev(label->text, &byte_id); in lv_label_refr_text()
1142 uint32_t byte_id_ori = byte_id; in lv_label_refr_text()
1146 len += _lv_txt_encoded_size(&label->text[byte_id]); in lv_label_refr_text()
1147 _lv_txt_encoded_next(label->text, &byte_id); in lv_label_refr_text()
1148 if(len > LV_LABEL_DOT_NUM || byte_id > txt_len) { in lv_label_refr_text()