ooo-build r11563 - in trunk: . patches/src680



Author: kyoshida
Date: Wed Feb 13 17:17:45 2008
New Revision: 11563
URL: http://svn.gnome.org/viewvc/ooo-build?rev=11563&view=rev

Log:
2008-02-13  Kohei Yoshida  <kyoshida novell com>

	* patches/src680/sc-openformula-match.diff: MATCH should perform case
	insensitive search.


Modified:
   trunk/ChangeLog
   trunk/patches/src680/sc-openformula-match.diff

Modified: trunk/patches/src680/sc-openformula-match.diff
==============================================================================
--- trunk/patches/src680/sc-openformula-match.diff	(original)
+++ trunk/patches/src680/sc-openformula-match.diff	Wed Feb 13 17:17:45 2008
@@ -4,8 +4,8 @@
 retrieving revision 1.53
 diff -u -r1.53 interpr1.cxx
 --- sc/source/core/tool/interpr1.cxx	1 Nov 2007 16:23:17 -0000	1.53
-+++ sc/source/core/tool/interpr1.cxx	15 Jan 2008 14:26:34 -0000
-@@ -3815,9 +3815,51 @@
++++ sc/source/core/tool/interpr1.cxx	13 Feb 2008 17:00:48 -0000
+@@ -3815,9 +3815,49 @@
  	}
  }
  
@@ -30,10 +30,8 @@
 +
 +    const String& rStr1 = rMat.GetString(i);
 +    const String& rStr2 = *rEntry.pStr;
-+    if (rStr1 == rStr2)
-+        return 0;
 +
-+    return rStr1 < rStr2 ? -1 : 1;
++    return rStr1.CompareIgnoreCaseToAscii(rStr2); // case-insensitive
 +}
 +
 +/** returns the last item with the identical value as the original item
@@ -57,7 +55,7 @@
  	BYTE nParamCount = GetByte();
  	if ( MustHaveParamCount( nParamCount, 2, 3 ) )
  	{
-@@ -3841,6 +3883,15 @@
+@@ -3841,6 +3881,15 @@
  				return;
  			}
  		}
@@ -73,7 +71,7 @@
  		else
  		{
  			SetIllegalParameter();
-@@ -3918,6 +3969,100 @@
+@@ -3918,6 +3967,100 @@
  			}
  			if ( rEntry.bQueryByString )
                  rParam.bRegExp = MayBeRegExp( *rEntry.pStr, pDok );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]