mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
inline arabic_char()
This commit is contained in:
parent
5c66dfea3c
commit
ed42c808b6
@ -1363,12 +1363,6 @@ static int half_shape(int c)
|
|||||||
return 0;
|
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.
|
* Do Arabic shaping on character "c". Returns the shaped character.
|
||||||
* out: "ccp" points to the first byte of the character to be shaped.
|
* out: "ccp" points to the first byte of the character to be shaped.
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
#ifndef NEOVIM_ARABIC_H
|
#ifndef NEOVIM_ARABIC_H
|
||||||
#define 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 arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
|
||||||
int next_c);
|
int next_c);
|
||||||
int arabic_combine(int one, int two);
|
int arabic_combine(int one, int two);
|
||||||
|
Loading…
Reference in New Issue
Block a user