[Libreoffice-commits] core.git: i18npool/source

Eike Rathke erack at redhat.com
Wed Oct 4 11:08:50 UTC 2017


 i18npool/source/breakiterator/breakiterator_cjk.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 9a64a82a50c66c720fca79a2aaafff7d2cb6db58
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Oct 4 13:02:10 2017 +0200

    Change define to inline and donate some spaces, tdf#96197 follow-up
    
    Change-Id: Ia7a000d48807c3fba1dd768a77b4c49b688e1234

diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index 8a4244631759..de33d122276a 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -86,7 +86,12 @@ BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos,
     return BreakIterator_Unicode::getWordBoundary(text, anyPos, nLocale, wordType, bDirection);
 }
 
-#define isHangul(cCh) ((cCh>=0xAC00&&cCh<=0xD7AF)||(cCh>=0x1100&&cCh<=0x11FF))
+namespace {
+inline bool isHangul( sal_Unicode cCh )
+{
+    return (cCh >= 0xAC00 && cCh <= 0xD7AF) || (cCh >= 0x1100 && cCh <= 0x11FF);
+}
+}
 
 LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
         const OUString& Text, sal_Int32 nStartPos,


More information about the Libreoffice-commits mailing list