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

#include <stdbool.h>

/// Whether c belongs to the range of Arabic characters that might be shaped.
static inline bool 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