Blame 0001-rename-IsAutoCapitalizeWordDelim-to-NonFieldWordDeli.patch

03601f0
From 0a9e57785e3a391cea1aa74b87afc6e2c2c0a398 Mon Sep 17 00:00:00 2001
03601f0
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
03601f0
Date: Mon, 19 Jun 2017 14:07:46 +0100
03601f0
Subject: [PATCH 1/2] rename IsAutoCapitalizeWordDelim to NonFieldWordDelim
03601f0
03601f0
Change-Id: If8fb8f5e51bba8e631a6fc5db54487b418c19e05
03601f0
---
03601f0
 editeng/source/misc/svxacorr.cxx | 22 +++++++++++-----------
03601f0
 1 file changed, 11 insertions(+), 11 deletions(-)
03601f0
03601f0
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
03601f0
index e0472dd..c7ec14c 100644
03601f0
--- a/editeng/source/misc/svxacorr.cxx
03601f0
+++ b/editeng/source/misc/svxacorr.cxx
03601f0
@@ -105,18 +105,18 @@ static const sal_Char
03601f0
 
03601f0
 OUString EncryptBlockName_Imp(const OUString& rName);
03601f0
 
03601f0
-static inline bool IsWordDelim( const sal_Unicode c )
03601f0
+static inline bool NonFieldWordDelim( const sal_Unicode c )
03601f0
 {
03601f0
     return ' ' == c || '\t' == c || 0x0a == c ||
03601f0
-            cNonBreakingSpace == c || 0x2011 == c || 0x1 == c;
03601f0
+            cNonBreakingSpace == c || 0x2011 == c;
03601f0
 }
03601f0
 
03601f0
-static inline bool IsAutoCapitalizeWordDelim( const sal_Unicode c )
03601f0
+static inline bool IsWordDelim( const sal_Unicode c )
03601f0
 {
03601f0
-    return ' ' == c || '\t' == c || 0x0a == c ||
03601f0
-            cNonBreakingSpace == c || 0x2011 == c;
03601f0
+    return c == 0x1 || NonFieldWordDelim(c);
03601f0
 }
03601f0
 
03601f0
+
03601f0
 static inline bool IsLowerLetter( sal_Int32 nCharType )
03601f0
 {
03601f0
     return CharClass::isLetterType( nCharType ) &&
03601f0
@@ -882,9 +882,9 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
03601f0
 
03601f0
     if( !bAtStart ) // Still no beginning of a paragraph?
03601f0
     {
03601f0
-        if (IsAutoCapitalizeWordDelim(*pStr))
03601f0
+        if (NonFieldWordDelim(*pStr))
03601f0
         {
03601f0
-            while (!(bAtStart = (pStart == pStr--)) && IsAutoCapitalizeWordDelim(*pStr))
03601f0
+            while (!(bAtStart = (pStart == pStr--)) && NonFieldWordDelim(*pStr))
03601f0
                 ;
03601f0
         }
03601f0
         // Asian full stop, full width full stop, full width exclamation mark
03601f0
@@ -915,7 +915,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
03601f0
 
03601f0
         do {            // overwrite all blanks
03601f0
             --pStr;
03601f0
-            if (!IsAutoCapitalizeWordDelim(*pStr))
03601f0
+            if (!NonFieldWordDelim(*pStr))
03601f0
                 break;
03601f0
             bAtStart = (pStart == pStr);
03601f0
         } while( !bAtStart );
03601f0
@@ -1011,7 +1011,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
03601f0
                 else
03601f0
                     bAlphaFnd = true;
03601f0
             }
03601f0
-            else if (bAlphaFnd || IsAutoCapitalizeWordDelim(*pTmpStr))
03601f0
+            else if (bAlphaFnd || NonFieldWordDelim(*pTmpStr))
03601f0
                 break;
03601f0
 
03601f0
             if( pTmpStr == pStart )
03601f0
@@ -1027,7 +1027,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
03601f0
     bool bNumericOnly = '0' <= *(pStr+1) && *(pStr+1) <= '9';
03601f0
 
03601f0
     // Search for the beginning of the word
03601f0
-    while (!IsAutoCapitalizeWordDelim(*pStr))
03601f0
+    while (!NonFieldWordDelim(*pStr))
03601f0
     {
03601f0
         if( bNumericOnly && rCC.isLetter( aText, pStr - pStart ) )
03601f0
             bNumericOnly = false;
03601f0
@@ -1041,7 +1041,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
03601f0
     if( bNumericOnly )      // consists of only numbers, then not
03601f0
         return false;
03601f0
 
03601f0
-    if (IsAutoCapitalizeWordDelim(*pStr))
03601f0
+    if (NonFieldWordDelim(*pStr))
03601f0
         ++pStr;
03601f0
 
03601f0
     OUString sWord;
03601f0
-- 
03601f0
2.9.3
03601f0