aboutsummaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-22 00:06:37 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-24 18:23:24 -0300
commit8b2a5e678e4a8f24328ecd438f6907ef25398f95 (patch)
tree4cacf8c95efd7fce0d22bfdd5cb6bda09d68e64b /src/mbyte.c
parentfd6fd35eef766d4ad80f8c0dd77e3b2dea026bcf (diff)
downloadrneovim-8b2a5e678e4a8f24328ecd438f6907ef25398f95.tar.gz
rneovim-8b2a5e678e4a8f24328ecd438f6907ef25398f95.tar.bz2
rneovim-8b2a5e678e4a8f24328ecd438f6907ef25398f95.zip
Move arabic.h #defines from arabic.h to arabic.c
- Move arabic_shape() decl from main.h to arabic.h - Move arabic_combine() and arabic_maycombine() from mbyte.c to arabic.c as these functions use the #defines I moved. - Remove the unnecessary include of arabic.h in globals.h - Remove include of arabic.c (sic) in main.c (change CMakeLists.txt to compile arabic.c normally)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index d87a73745a..e6a6994bd9 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -1533,34 +1533,6 @@ int mb_cptr2char_adv(char_u **pp)
}
/*
- * Check whether we are dealing with Arabic combining characters.
- * Note: these are NOT really composing characters!
- */
-int arabic_combine(
- int one, /* first character */
- int two /* character just after "one" */
- )
-{
- if (one == a_LAM)
- return arabic_maycombine(two);
- return FALSE;
-}
-
-/*
- * Check whether we are dealing with a character that could be regarded as an
- * Arabic combining character, need to check the character before this.
- */
-int arabic_maycombine(int two)
-{
- if (p_arshape && !p_tbidi)
- return two == a_ALEF_MADDA
- || two == a_ALEF_HAMZA_ABOVE
- || two == a_ALEF_HAMZA_BELOW
- || two == a_ALEF;
- return FALSE;
-}
-
-/*
* Check if the character pointed to by "p2" is a composing character when it
* comes after "p1". For Arabic sometimes "ab" is replaced with "c", which
* behaves like a composing character.