You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/06/13 00:36:31 UTC
cvs commit: xml-xerces/c/src/util XMLString.cpp
andyh 00/06/12 15:36:31
Modified: c/src/util XMLString.cpp
Log:
Fixed error in XMLSTring::trim, reported by Michele Laghi
Revision Changes Path
1.10 +5 -2 xml-xerces/c/src/util/XMLString.cpp
Index: XMLString.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/XMLString.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XMLString.cpp 2000/05/15 22:31:22 1.9
+++ XMLString.cpp 2000/06/12 22:36:30 1.10
@@ -56,6 +56,9 @@
/*
* $Log: XMLString.cpp,v $
+ * Revision 1.10 2000/06/12 22:36:30 andyh
+ * Fixed error in XMLSTring::trim, reported by Michele Laghi
+ *
* Revision 1.9 2000/05/15 22:31:22 andyh
* Replace #include<memory.h> with <string.h> everywhere.
*
@@ -1076,13 +1079,13 @@
unsigned int skip, scrape;
for (skip = 0; skip < len; skip++)
{
- if (XMLPlatformUtils::fgTransService->isSpace(toTrim[skip]))
+ if (!XMLPlatformUtils::fgTransService->isSpace(toTrim[skip]))
break;
}
for (scrape = len; scrape > skip; scrape--)
{
- if (XMLPlatformUtils::fgTransService->isSpace(toTrim[scrape - 1]))
+ if (!XMLPlatformUtils::fgTransService->isSpace(toTrim[scrape - 1]))
break;
}