Lines Matching refs:ch_enc

115     uint32_t ch_enc;  in _lv_txt_ap_calc_bytes_cnt()  local
122 ch_enc = _lv_txt_encoded_next(txt, &j); in _lv_txt_ap_calc_bytes_cnt()
123 current_ap_idx = lv_ap_get_char_index(ch_enc); in _lv_txt_ap_calc_bytes_cnt()
126 ch_enc = ap_chars_map[current_ap_idx].char_end_form; in _lv_txt_ap_calc_bytes_cnt()
128 if(ch_enc < 0x80) in _lv_txt_ap_calc_bytes_cnt()
130 else if(ch_enc < 0x0800) in _lv_txt_ap_calc_bytes_cnt()
132 else if(ch_enc < 0x010000) in _lv_txt_ap_calc_bytes_cnt()
147 uint32_t * ch_enc; in _lv_txt_ap_proc() local
153 ch_enc = (uint32_t *)lv_mem_alloc(sizeof(uint32_t) * (txt_length + 1)); in _lv_txt_ap_proc()
159 ch_enc[j++] = _lv_txt_encoded_next(txt, &i); in _lv_txt_ap_proc()
161 ch_enc[j] = 0; in _lv_txt_ap_proc()
167 index_current = lv_ap_get_char_index(ch_enc[i]); in _lv_txt_ap_proc()
168 idx_next = lv_ap_get_char_index(ch_enc[i + 1]); in _lv_txt_ap_proc()
170 if(lv_txt_is_arabic_vowel(ch_enc[i])) { // Current character is a vowel in _lv_txt_ap_proc()
171 ch_fin[j] = ch_enc[i]; in _lv_txt_ap_proc()
176 else if(lv_txt_is_arabic_vowel(ch_enc[i + 1])) { // Next character is a vowel in _lv_txt_ap_proc()
177 …idx_next = lv_ap_get_char_index(ch_enc[i + 2]); // Skip the vowel character to join with the chara… in _lv_txt_ap_proc()
181 ch_fin[j] = ch_enc[i]; in _lv_txt_ap_proc()
219 ch_enc[i] = 0; in _lv_txt_ap_proc()
221 ch_enc[i] = ch_fin[i]; in _lv_txt_ap_proc()
228 if(ch_enc[i] < 0x80) { in _lv_txt_ap_proc()
229 *(txt_out_temp++) = ch_enc[i] & 0xFF; in _lv_txt_ap_proc()
231 else if(ch_enc[i] < 0x0800) { in _lv_txt_ap_proc()
232 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x1F) | 0xC0; in _lv_txt_ap_proc()
233 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in _lv_txt_ap_proc()
235 else if(ch_enc[i] < 0x010000) { in _lv_txt_ap_proc()
236 *(txt_out_temp++) = ((ch_enc[i] >> 12) & 0x0F) | 0xE0; in _lv_txt_ap_proc()
237 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x3F) | 0x80; in _lv_txt_ap_proc()
238 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in _lv_txt_ap_proc()
240 else if(ch_enc[i] < 0x110000) { in _lv_txt_ap_proc()
241 *(txt_out_temp++) = ((ch_enc[i] >> 18) & 0x07) | 0xF0; in _lv_txt_ap_proc()
242 *(txt_out_temp++) = ((ch_enc[i] >> 12) & 0x3F) | 0x80; in _lv_txt_ap_proc()
243 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x3F) | 0x80; in _lv_txt_ap_proc()
244 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in _lv_txt_ap_proc()
250 lv_mem_free(ch_enc); in _lv_txt_ap_proc()