You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/06/22 15:31:32 UTC

svn commit: r191835 - in /xerces/c/trunk/src/xercesc/util: XMLBigInteger.cpp XMLString.cpp XMLURL.cpp

Author: cargilld
Date: Wed Jun 22 06:31:31 2005
New Revision: 191835

URL: http://svn.apache.org/viewcvs?rev=191835&view=rev
Log:
Check for XML space instead of transcoders definition of whitespace.

Modified:
    xerces/c/trunk/src/xercesc/util/XMLBigInteger.cpp
    xerces/c/trunk/src/xercesc/util/XMLString.cpp
    xerces/c/trunk/src/xercesc/util/XMLURL.cpp

Modified: xerces/c/trunk/src/xercesc/util/XMLBigInteger.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/XMLBigInteger.cpp?rev=191835&r1=191834&r2=191835&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLBigInteger.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLBigInteger.cpp Wed Jun 22 06:31:31 2005
@@ -28,6 +28,7 @@
 #include <xercesc/util/TransService.hpp>
 #include <xercesc/util/XMLUniDefs.hpp>
 #include <xercesc/util/Janitor.hpp>
+#include <xercesc/util/XMLChar.hpp>
 
 XERCES_CPP_NAMESPACE_BEGIN
 
@@ -118,7 +119,7 @@
 
     // Scan past any whitespace. If we hit the end, then return failure
     const XMLCh* startPtr = toConvert;
-    while (XMLPlatformUtils::fgTransService->isSpace(*startPtr))
+    while (XMLChar1_0::isWhitespace(*startPtr))
         startPtr++;
 
     if (!*startPtr)
@@ -126,7 +127,7 @@
 
     // Start at the end and work back through any whitespace
     const XMLCh* endPtr = toConvert + XMLString::stringLen(toConvert);
-    while (XMLPlatformUtils::fgTransService->isSpace(*(endPtr - 1)))
+    while (XMLChar1_0::isWhitespace(*(endPtr - 1)))
         endPtr--;
 
     //

Modified: xerces/c/trunk/src/xercesc/util/XMLString.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/XMLString.cpp?rev=191835&r1=191834&r2=191835&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLString.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLString.cpp Wed Jun 22 06:31:31 2005
@@ -1392,13 +1392,13 @@
     unsigned int skip, scrape;
     for (skip = 0; skip < len; skip++)
     {
-        if (!XMLPlatformUtils::fgTransService->isSpace(toTrim[skip]))
+        if (!XMLChar1_0::isWhitespace(toTrim[skip]))
             break;
     }
 
     for (scrape = len; scrape > skip; scrape--)
     {
-        if (!XMLPlatformUtils::fgTransService->isSpace(toTrim[scrape - 1]))
+        if (!XMLChar1_0::isWhitespace(toTrim[scrape - 1]))
             break;
     }
 
@@ -1509,7 +1509,7 @@
         // find the first non-space character
         for (skip = index; skip < len; skip++)
         {
-            if (!XMLPlatformUtils::fgTransService->isSpace(tokenizeStr[skip]))
+            if (!XMLChar1_0::isWhitespace(tokenizeStr[skip]))
                 break;
         }
         index = skip;
@@ -1517,7 +1517,7 @@
         // find the delimiter (space character)
         for (; skip < len; skip++)
         {
-            if (XMLPlatformUtils::fgTransService->isSpace(tokenizeStr[skip]))
+            if (XMLChar1_0::isWhitespace(tokenizeStr[skip]))
                 break;
         }
 

Modified: xerces/c/trunk/src/xercesc/util/XMLURL.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/XMLURL.cpp?rev=191835&r1=191834&r2=191835&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLURL.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLURL.cpp Wed Jun 22 06:31:31 2005
@@ -34,6 +34,7 @@
 #include <xercesc/util/XMLUni.hpp>
 #include <xercesc/util/XMLUri.hpp>
 #include <xercesc/util/OutOfMemoryException.hpp>
+#include <xercesc/util/XMLChar.hpp>
 
 XERCES_CPP_NAMESPACE_BEGIN
 
@@ -950,7 +951,7 @@
     // Run up past any spaces
     while (*srcPtr)
     {
-        if (!XMLPlatformUtils::fgTransService->isSpace(*srcPtr))
+        if (!XMLChar1_0::isWhitespace(*srcPtr))
             break;
         srcPtr++;
     }
@@ -1242,7 +1243,7 @@
     // Run up past any spaces
     while (*srcPtr)
     {
-        if (!XMLPlatformUtils::fgTransService->isSpace(*srcPtr))
+        if (!XMLChar1_0::isWhitespace(*srcPtr))
             break;
         srcPtr++;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org