inline arabic_char()

This commit is contained in:
Felipe Oliveira Carvalho 2014-03-22 14:09:17 -03:00 committed by Thiago de Arruda
parent 5c66dfea3c
commit ed42c808b6
2 changed files with 7 additions and 7 deletions

View File

@ -1363,12 +1363,6 @@ static int half_shape(int c)
return 0;
}
/// Whether c belongs to the range of Arabic characters that might be shaped.
int arabic_char(int c)
{
return c >= a_HAMZA && c <= a_MINI_ALEF;
}
/*
* Do Arabic shaping on character "c". Returns the shaped character.
* out: "ccp" points to the first byte of the character to be shaped.

View File

@ -1,7 +1,13 @@
#ifndef NEOVIM_ARABIC_H
#define NEOVIM_ARABIC_H
int arabic_char(int c);
/// 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;
}
int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
int next_c);
int arabic_combine(int one, int two);