mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
Reformat new function in arabic.c to comply with style guide
This commit is contained in:
parent
8b2a5e678e
commit
5c66dfea3c
26
src/arabic.c
26
src/arabic.c
@ -1440,31 +1440,29 @@ int arabic_shape(int c, int *ccp, int *c1p, int prev_c, int prev_c1,
|
|||||||
return curr_c;
|
return curr_c;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/// Check whether we are dealing with Arabic combining characters.
|
||||||
* Check whether we are dealing with Arabic combining characters.
|
/// Note: these are NOT really composing characters!
|
||||||
* Note: these are NOT really composing characters!
|
///
|
||||||
*/
|
/// @param one First character.
|
||||||
int arabic_combine(
|
/// @param two Character just after "one".
|
||||||
int one, /* first character */
|
int arabic_combine(int one, int two)
|
||||||
int two /* character just after "one" */
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
if (one == a_LAM)
|
if (one == a_LAM) {
|
||||||
return arabic_maycombine(two);
|
return arabic_maycombine(two);
|
||||||
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/// Check whether we are dealing with a character that could be regarded as an
|
||||||
* Check whether we are dealing with a character that could be regarded as an
|
/// Arabic combining character, need to check the character before this.
|
||||||
* Arabic combining character, need to check the character before this.
|
|
||||||
*/
|
|
||||||
int arabic_maycombine(int two)
|
int arabic_maycombine(int two)
|
||||||
{
|
{
|
||||||
if (p_arshape && !p_tbidi)
|
if (p_arshape && !p_tbidi) {
|
||||||
return two == a_ALEF_MADDA
|
return two == a_ALEF_MADDA
|
||||||
|| two == a_ALEF_HAMZA_ABOVE
|
|| two == a_ALEF_HAMZA_ABOVE
|
||||||
|| two == a_ALEF_HAMZA_BELOW
|
|| two == a_ALEF_HAMZA_BELOW
|
||||||
|| two == a_ALEF;
|
|| two == a_ALEF;
|
||||||
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user