Lines Matching refs:letter

39 static lv_base_dir_t lv_bidi_get_letter_dir(uint32_t letter);
40 static bool lv_bidi_letter_is_weak(uint32_t letter);
41 static bool lv_bidi_letter_is_rtl(uint32_t letter);
42 static bool lv_bidi_letter_is_neutral(uint32_t letter);
48 static uint32_t char_change_to_pair(uint32_t letter);
49 …c lv_base_dir_t bracket_process(const char * txt, uint32_t next_pos, uint32_t len, uint32_t letter,
111 uint32_t letter; in _lv_bidi_detect_base_dir() local
113 letter = _lv_txt_encoded_next(txt, &i); in _lv_bidi_detect_base_dir()
116 dir = lv_bidi_get_letter_dir(letter); in _lv_bidi_detect_base_dir()
246 uint32_t letter = _lv_txt_encoded_next(str_in, &rd); in _lv_bidi_process_paragraph() local
248 dir = lv_bidi_get_letter_dir(letter); 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()
345 static lv_base_dir_t lv_bidi_get_letter_dir(uint32_t letter) in lv_bidi_get_letter_dir() argument
347 if(lv_bidi_letter_is_rtl(letter)) return LV_BASE_DIR_RTL; in lv_bidi_get_letter_dir()
348 if(lv_bidi_letter_is_neutral(letter)) return LV_BASE_DIR_NEUTRAL; in lv_bidi_get_letter_dir()
349 if(lv_bidi_letter_is_weak(letter)) return LV_BASE_DIR_WEAK; in lv_bidi_get_letter_dir()
358 static bool lv_bidi_letter_is_weak(uint32_t letter) in lv_bidi_letter_is_weak() argument
365 if(letter == x) { in lv_bidi_letter_is_weak()
377 static bool lv_bidi_letter_is_rtl(uint32_t letter) in lv_bidi_letter_is_rtl() argument
379 if(letter == 0x202E) return true; /*Unicode of LV_BIDI_RLO*/ in lv_bidi_letter_is_rtl()
382 if(letter >= 0x600 && letter <= 0x6FF) return true; in lv_bidi_letter_is_rtl()
383 if(letter >= 0xFB50 && letter <= 0xFDFF) return true; in lv_bidi_letter_is_rtl()
384 if(letter >= 0xFE70 && letter <= 0xFEFF) return true; in lv_bidi_letter_is_rtl()
387 if(letter >= 0x590 && letter <= 0x5FF) return true; in lv_bidi_letter_is_rtl()
388 if(letter >= 0xFB1D && letter <= 0xFB4F) return true; in lv_bidi_letter_is_rtl()
398 static bool lv_bidi_letter_is_neutral(uint32_t letter) in lv_bidi_letter_is_neutral() argument
403 if(letter == (uint32_t)neutrals[i]) return true; in lv_bidi_letter_is_neutral()
435 uint32_t letter; in get_next_run() local
439 letter = _lv_txt_encoded_next(txt, NULL); in get_next_run()
440 lv_base_dir_t dir = lv_bidi_get_letter_dir(letter); in get_next_run()
441 if(dir == LV_BASE_DIR_NEUTRAL) dir = bracket_process(txt, 0, max_len, letter, base_dir); in get_next_run()
445 letter = _lv_txt_encoded_next(txt, &i); in get_next_run()
448 dir = lv_bidi_get_letter_dir(letter); in get_next_run()
449 if(dir == LV_BASE_DIR_NEUTRAL) dir = bracket_process(txt, i, max_len, letter, base_dir); in get_next_run()
470 letter = _lv_txt_encoded_next(txt, &i); in get_next_run()
472 next_dir = lv_bidi_get_letter_dir(letter); in get_next_run()
473 …if(next_dir == LV_BASE_DIR_NEUTRAL) next_dir = bracket_process(txt, i, max_len, letter, base_dir); in get_next_run()
533 uint32_t letter = _lv_txt_encoded_prev(src, &i); in rtl_reverse() local
537 if(lv_bidi_letter_is_weak(letter)) { in rtl_reverse()
543 letter = _lv_txt_encoded_prev(src, &i); in rtl_reverse()
550 …if(lv_bidi_letter_is_weak(letter) == false && letter != '.' && letter != ',' && letter != '$' && l… in rtl_reverse()
575 uint32_t new_letter = letter = char_change_to_pair(letter); in rtl_reverse()
592 static uint32_t char_change_to_pair(uint32_t letter) in char_change_to_pair() argument
597 if(letter == bracket_left[i]) return bracket_right[i]; in char_change_to_pair()
601 if(letter == bracket_right[i]) return bracket_left[i]; in char_change_to_pair()
604 return letter; in char_change_to_pair()
607 …c lv_base_dir_t bracket_process(const char * txt, uint32_t next_pos, uint32_t len, uint32_t letter, in bracket_process() argument
615 if(bracket_left[i] == letter) { in bracket_process()
675 if(letter == bracket_right[br_stack[br_stack_p - 1].bracklet_pos]) { in bracket_process()