[Libreoffice-commits] .: sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Sep 5 06:49:58 PDT 2011
sw/source/core/text/porlay.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 2c097965478f2544735b09294405ff8de83902fe
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 5 14:49:49 2011 +0100
provide a fallback for this for icu < 4.4
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index ef50056..d360414 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -82,7 +82,11 @@ using namespace i18n::ScriptType;
#define isRehChar(c) IS_JOINING_GROUP((c), REH)
#define isTehMarbutaChar(c) IS_JOINING_GROUP((c), TEH_MARBUTA)
#define isWawChar(c) IS_JOINING_GROUP((c), WAW)
+#if ( (U_ICU_VERSION_MAJOR_NUM > 4 ) || ((U_ICU_VERSION_MAJOR_NUM == 4) && (U_ICU_VERSION_MINOR_NUM >= 4)) )
#define isYehChar(c) (IS_JOINING_GROUP((c), YEH) || IS_JOINING_GROUP((c), FARSI_YEH))
+#else
+#define isYehChar(c) (c == 0x626 || c == 0x649 || c == 0x64A || c == 0x678 || c == 0x6CC || c == 0x6CE || c == 0x6D0 || c == 0x6D1)
+#endif
#define isSeenOrSadChar(c) (IS_JOINING_GROUP((c), SAD) || IS_JOINING_GROUP((c), SEEN))
sal_Bool isTransparentChar ( xub_Unicode cCh )
More information about the Libreoffice-commits
mailing list