[fdo-commits] r819 - branches/3.2.x/Utilities/Common/Src

svn_fdo at osgeo.org svn_fdo at osgeo.org
Fri Mar 2 17:21:07 EST 2007


Author: badreddinekaroui
Date: 2007-03-02 17:21:07 -0500 (Fri, 02 Mar 2007)
New Revision: 819

Modified:
   branches/3.2.x/Utilities/Common/Src/FdoCommonFilterExecutor.cpp
Log:
Ticket# 25: Unlike the rest of the providers and the equal operator, the LIKE for the SHP and SDF providers is case insensitive. Both the SDF and SHP filter executors need to use the case sensitive string compare system functions. 



Modified: branches/3.2.x/Utilities/Common/Src/FdoCommonFilterExecutor.cpp
===================================================================
--- branches/3.2.x/Utilities/Common/Src/FdoCommonFilterExecutor.cpp	2007-02-27 19:28:45 UTC (rev 818)
+++ branches/3.2.x/Utilities/Common/Src/FdoCommonFilterExecutor.cpp	2007-03-02 22:21:07 UTC (rev 819)
@@ -1365,7 +1365,7 @@
     {
         bMatches = MatchBracket (pattern+1, src);
     }
-    else if (*src != L'\0' && ((*pattern == L'_') ||  FdoCommonOSUtil::wcsnicmp (pattern, src, 1) == 0))
+    else if (*src != L'\0' && ((*pattern == L'_') ||  wcsncmp (pattern, src, 1) == 0))
     {
         bMatches = MatchesHere (pattern+1, src+1);
     }
@@ -1460,7 +1460,7 @@
     for (unsigned i=0; i<set.size (); i++)
     {
         wchar_t current = set[i];
-        if (FdoCommonOSUtil::wcsnicmp (&current, &srcchar, 1) == 0)
+        if (wcsncmp (&current, &srcchar, 1) == 0)
         {
             isthere = true;
             break;



More information about the fdo-commits mailing list