aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arabic.h
blob: 6c4529a93c986262123f5fb9d37dddfbef8f5e21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NVIM_ARABIC_H
#define NVIM_ARABIC_H

/// Whether c belongs to the range of Arabic characters that might be shaped.
static inline int arabic_char(int c)
{
    // return c >= a_HAMZA && c <= a_MINI_ALEF;
    return c >= 0x0621 && c <= 0x0670;
}

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "arabic.h.generated.h"
#endif
#endif  // NVIM_ARABIC_H