Lines Matching refs:len
44 …base_dir_t get_next_run(const char * txt, lv_base_dir_t base_dir, uint32_t max_len, uint32_t * len,
46 static void rtl_reverse(char * dest, const char * src, uint32_t len, uint16_t * pos_conv_out, uint1…
49 static lv_base_dir_t bracket_process(const char * txt, uint32_t next_pos, uint32_t len, uint32_t le…
51 static void fill_pos_conv(uint16_t * out, uint16_t len, uint16_t index);
137 uint16_t _lv_bidi_get_logical_pos(const char * str_in, char ** bidi_txt, uint32_t len, lv_base_dir_… in _lv_bidi_get_logical_pos() argument
140 uint32_t pos_conv_len = get_txt_len(str_in, len); in _lv_bidi_get_logical_pos()
141 char * buf = lv_mem_buf_get(len + 1); in _lv_bidi_get_logical_pos()
152 …_lv_bidi_process_paragraph(str_in, bidi_txt ? *bidi_txt : NULL, len, base_dir, pos_conv_buf, pos_c… in _lv_bidi_get_logical_pos()
174 uint16_t _lv_bidi_get_visual_pos(const char * str_in, char ** bidi_txt, uint16_t len, lv_base_dir_t… in _lv_bidi_get_visual_pos() argument
177 uint32_t pos_conv_len = get_txt_len(str_in, len); in _lv_bidi_get_visual_pos()
178 char * buf = lv_mem_buf_get(len + 1); in _lv_bidi_get_visual_pos()
189 …_lv_bidi_process_paragraph(str_in, bidi_txt ? *bidi_txt : NULL, len, base_dir, pos_conv_buf, pos_c… in _lv_bidi_get_visual_pos()
216 void _lv_bidi_process_paragraph(const char * str_in, char * str_out, uint32_t len, lv_base_dir_t ba… in _lv_bidi_process_paragraph() argument
229 wr = len; in _lv_bidi_process_paragraph()
237 if(str_out) str_out[len] = '\0'; in _lv_bidi_process_paragraph()
245 while(rd < len) { in _lv_bidi_process_paragraph()
249 if(dir == LV_BASE_DIR_NEUTRAL) dir = bracket_process(str_in, rd, len, letter, base_dir); in _lv_bidi_process_paragraph()
279 while(rd < len && str_in[rd]) { in _lv_bidi_process_paragraph()
280 run_dir = get_next_run(&str_in[rd], base_dir, len - rd, &run_len, &pos_conv_run_len); in _lv_bidi_process_paragraph()
411 uint32_t len = 0; in get_txt_len() local
416 len++; in get_txt_len()
419 return len; in get_txt_len()
422 static void fill_pos_conv(uint16_t * out, uint16_t len, uint16_t index) in fill_pos_conv() argument
425 for(i = 0; i < len; i++) { in fill_pos_conv()
431 …base_dir_t get_next_run(const char * txt, lv_base_dir_t base_dir, uint32_t max_len, uint32_t * len, in get_next_run() argument
454 *len = i; in get_next_run()
487 *len = i_prev; in get_next_run()
492 *len = i_last_strong; in get_next_run()
512 *len = i_prev; in get_next_run()
517 *len = i_last_strong; in get_next_run()
524 static void rtl_reverse(char * dest, const char * src, uint32_t len, uint16_t * pos_conv_out, uint1… in rtl_reverse() argument
527 uint32_t i = len; in rtl_reverse()
607 static lv_base_dir_t bracket_process(const char * txt, uint32_t next_pos, uint32_t len, uint32_t le… in bracket_process() argument
619 while(txt_i < len) { in bracket_process()
635 if(txt_i > len) return LV_BASE_DIR_NEUTRAL; in bracket_process()