1 | #ifndef NVIM_ARABIC_H |
---|---|
2 | #define NVIM_ARABIC_H |
3 | |
4 | #include <stdbool.h> |
5 | |
6 | /// Whether c belongs to the range of Arabic characters that might be shaped. |
7 | static inline bool arabic_char(int c) |
8 | { |
9 | // return c >= a_HAMZA && c <= a_MINI_ALEF; |
10 | return c >= 0x0621 && c <= 0x0670; |
11 | } |
12 | |
13 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
14 | # include "arabic.h.generated.h" |
15 | #endif |
16 | #endif // NVIM_ARABIC_H |
17 |