aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arabtype.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arabtype.c b/arabtype.c
index d9ac78d..12c6b43 100644
--- a/arabtype.c
+++ b/arabtype.c
@@ -71,14 +71,12 @@ char_form arabic_forms_b[] =
bool is_arabic_letter(uint32_t cp)
{
- if( cp >= ARABIC_LETTER_START && cp <= ARABIC_LETTER_END )
- return true;
- return false;
+ return ( cp >= ARABIC_LETTER_START && cp <= ARABIC_LETTER_END );
}
bool is_linking_type(uint32_t cp)
{
- if( cp >= ARABIC_LETTER_START && cp <= ARABIC_LETTER_END )
+ if( is_arabic_letter(cp) )
if( arabic_forms_b[cp - ARABIC_LETTER_START][INITIAL] || arabic_forms_b[cp - ARABIC_LETTER_START][MEDIAL] )
return true;
return false;