1 /**
2  * @file lv_txt_ap.h
3  *
4  */
5 
6 #ifndef LV_TXT_AP_H
7 #define LV_TXT_AP_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #include <stddef.h>
17 #include "lv_txt.h"
18 #include "../draw/lv_draw.h"
19 
20 #if LV_USE_ARABIC_PERSIAN_CHARS == 1
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 #define LV_UNDEF_ARABIC_PERSIAN_CHARS     (UINT32_MAX)
27 #define LV_AP_ALPHABET_BASE_CODE          0x0622
28 #define LV_AP_END_CHARS_LIST              {0,0,0,0,0,{0,0}}
29 /**********************
30  *      TYPEDEFS
31  **********************/
32 
33 /**********************
34  * GLOBAL PROTOTYPES
35  **********************/
36 uint32_t _lv_txt_ap_calc_bytes_cnt(const char * txt);
37 void _lv_txt_ap_proc(const char * txt, char * txt_out);
38 
39 /**********************
40  *      MACROS
41  **********************/
42 
43 #endif // LV_USE_ARABIC_PERSIAN_CHARS
44 
45 #ifdef __cplusplus
46 } /*extern "C"*/
47 #endif
48 
49 #endif /*LV_TXT_AP_H*/
50