Lines Matching refs:i

115     uint32_t i, j;  in lv_text_ap_calc_bytes_count()  local
120 i = 0; in lv_text_ap_calc_bytes_count()
122 while(i < txt_length) { in lv_text_ap_calc_bytes_count()
138 i++; in lv_text_ap_calc_bytes_count()
147 uint32_t index_current, idx_next, idx_previous, i, j; in lv_text_ap_proc() local
157 i = 0; in lv_text_ap_proc()
160 ch_enc[j++] = lv_text_encoded_next(txt, &i); in lv_text_ap_proc()
164 i = 0; in lv_text_ap_proc()
167 while(i < txt_length) { in lv_text_ap_proc()
168 index_current = lv_ap_get_char_index(ch_enc[i]); in lv_text_ap_proc()
169 idx_next = lv_ap_get_char_index(ch_enc[i + 1]); in lv_text_ap_proc()
171 if(lv_text_is_arabic_vowel(ch_enc[i])) { // Current character is a vowel in lv_text_ap_proc()
172 ch_fin[j] = ch_enc[i]; in lv_text_ap_proc()
173 i++; in lv_text_ap_proc()
177 else if(lv_text_is_arabic_vowel(ch_enc[i + 1])) { // Next character is a vowel in lv_text_ap_proc()
178 …idx_next = lv_ap_get_char_index(ch_enc[i + 2]); // Skip the vowel character to join with the chara… in lv_text_ap_proc()
182 ch_fin[j] = ch_enc[i]; in lv_text_ap_proc()
184 i++; in lv_text_ap_proc()
189 uint8_t conjunction_to_previous = (i == 0 || in lv_text_ap_proc()
191 uint8_t conjunction_to_next = ((i == txt_length - 1) || in lv_text_ap_proc()
201 i += 2; in lv_text_ap_proc()
215 i++; in lv_text_ap_proc()
219 for(i = 0; i < txt_length; i++) in lv_text_ap_proc()
220 ch_enc[i] = 0; in lv_text_ap_proc()
221 for(i = 0; i < j; i++) in lv_text_ap_proc()
222 ch_enc[i] = ch_fin[i]; in lv_text_ap_proc()
226 i = 0; in lv_text_ap_proc()
228 while(i < txt_length) { in lv_text_ap_proc()
229 if(ch_enc[i] < 0x80) { in lv_text_ap_proc()
230 *(txt_out_temp++) = ch_enc[i] & 0xFF; in lv_text_ap_proc()
232 else if(ch_enc[i] < 0x0800) { in lv_text_ap_proc()
233 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x1F) | 0xC0; in lv_text_ap_proc()
234 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in lv_text_ap_proc()
236 else if(ch_enc[i] < 0x010000) { in lv_text_ap_proc()
237 *(txt_out_temp++) = ((ch_enc[i] >> 12) & 0x0F) | 0xE0; in lv_text_ap_proc()
238 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x3F) | 0x80; in lv_text_ap_proc()
239 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in lv_text_ap_proc()
241 else if(ch_enc[i] < 0x110000) { in lv_text_ap_proc()
242 *(txt_out_temp++) = ((ch_enc[i] >> 18) & 0x07) | 0xF0; in lv_text_ap_proc()
243 *(txt_out_temp++) = ((ch_enc[i] >> 12) & 0x3F) | 0x80; in lv_text_ap_proc()
244 *(txt_out_temp++) = ((ch_enc[i] >> 6) & 0x3F) | 0x80; in lv_text_ap_proc()
245 *(txt_out_temp++) = ((ch_enc[i] >> 0) & 0x3F) | 0x80; in lv_text_ap_proc()
248 i++; in lv_text_ap_proc()
259 for(uint8_t i = 0; ap_chars_map[i].char_end_form; i++) { in lv_ap_get_char_index() local
260 if(c == (ap_chars_map[i].char_offset + LV_AP_ALPHABET_BASE_CODE)) in lv_ap_get_char_index()
261 return i; in lv_ap_get_char_index()
262 …else if(c == ap_chars_map[i].char_end_form //is i… in lv_ap_get_char_index()
263 …|| c == (ap_chars_map[i].char_end_form + ap_chars_map[i].char_beginning_form_offset) //is it a… in lv_ap_get_char_index()
264 …|| c == (ap_chars_map[i].char_end_form + ap_chars_map[i].char_middle_form_offset) //is it a … in lv_ap_get_char_index()
265 …|| c == (ap_chars_map[i].char_end_form + ap_chars_map[i].char_isolated_form_offset)) { //is it an… in lv_ap_get_char_index()
266 return i; in lv_ap_get_char_index()