Searched refs:byte_pos (Results 1 – 3 of 3) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | vstr.c | 188 if (byte_pos > l) { in vstr_ins_blank_bytes() 189 byte_pos = l; in vstr_ins_blank_bytes() 195 memmove(vstr->buf + byte_pos + byte_len, vstr->buf + byte_pos, l - byte_pos); in vstr_ins_blank_bytes() 199 return vstr->buf + byte_pos; in vstr_ins_blank_bytes() 202 void vstr_ins_byte(vstr_t *vstr, size_t byte_pos, byte b) { in vstr_ins_byte() argument 203 char *s = vstr_ins_blank_bytes(vstr, byte_pos, 1); in vstr_ins_byte() 225 void vstr_cut_out_bytes(vstr_t *vstr, size_t byte_pos, size_t bytes_to_cut) { in vstr_cut_out_bytes() argument 226 if (byte_pos >= vstr->len) { in vstr_cut_out_bytes() 228 } else if (byte_pos + bytes_to_cut >= vstr->len) { in vstr_cut_out_bytes() 229 vstr->len = byte_pos; in vstr_cut_out_bytes() [all …]
|
A D | misc.h | 200 void vstr_ins_byte(vstr_t *vstr, size_t byte_pos, byte b); 204 void vstr_cut_out_bytes(vstr_t *vstr, size_t byte_pos, size_t bytes_to_cut);
|
/AliOS-Things-master/components/littlevgl/src/lv_objx/ |
A D | lv_ta.c | 409 uint32_t byte_pos = lv_txt_encoded_get_byte_id(ext->pwd_tmp, ext->cursor.pos - 1); in lv_ta_del_char() local 410 lv_txt_cut(ext->pwd_tmp, ext->cursor.pos - 1, lv_txt_encoded_size(&label_txt[byte_pos])); in lv_ta_del_char() 1624 uint32_t byte_pos; in refr_cursor_area() local 1625 byte_pos = lv_txt_encoded_get_byte_id(txt, cur_pos); in refr_cursor_area() 1627 uint32_t letter = lv_txt_encoded_next(&txt[byte_pos], NULL); in refr_cursor_area() 1650 byte_pos += lv_txt_encoded_size(&txt[byte_pos]); in refr_cursor_area() 1651 letter = lv_txt_encoded_next(&txt[byte_pos], NULL); in refr_cursor_area() 1662 ext->cursor.txt_byte_pos = byte_pos; in refr_cursor_area()
|
Completed in 8 milliseconds