aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-22 14:09:17 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-24 18:23:24 -0300
commited42c808b61dd745e76d19c6ffb2612496a779a1 (patch)
tree3b14be201c3b79c44296ac5ebe311b90e63c1dde /src
parent5c66dfea3c5f332784f4c67ce4d4644e20c92b4c (diff)
downloadrneovim-ed42c808b61dd745e76d19c6ffb2612496a779a1.tar.gz
rneovim-ed42c808b61dd745e76d19c6ffb2612496a779a1.tar.bz2
rneovim-ed42c808b61dd745e76d19c6ffb2612496a779a1.zip
inline arabic_char()
Diffstat (limited to 'src')
-rw-r--r--src/arabic.c6
-rw-r--r--src/arabic.h8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/arabic.c b/src/arabic.c
index c72ed306a5..54f88f8757 100644
--- a/src/arabic.c
+++ b/src/arabic.c
@@ -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.
diff --git a/src/arabic.h b/src/arabic.h
index 2c435faa5c..5129b5a56a 100644
--- a/src/arabic.h
+++ b/src/arabic.h
@@ -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);