You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/11/03 21:04:31 UTC
cvs commit: xml-xalan/c/src/XPath FunctionNormalize.hpp
dbertoni 00/11/03 12:04:28
Modified: c/src/XPath FunctionNormalize.hpp
Log:
Changed how trailing whitespace is handled.
Revision Changes Path
1.11 +2 -2 xml-xalan/c/src/XPath/FunctionNormalize.hpp
Index: FunctionNormalize.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionNormalize.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- FunctionNormalize.hpp 2000/11/02 22:25:46 1.10
+++ FunctionNormalize.hpp 2000/11/03 20:04:22 1.11
@@ -190,7 +190,7 @@
thePreviousChar = theCurrentChar;
}
- const VectorType::size_type theSize = theVector.size();
+ VectorType::size_type theSize = theVector.size();
if (theSize == 0)
{
@@ -201,7 +201,7 @@
if (isXMLWhitespace(theVector.back()) == true)
{
// The last character is a space, so remove it
- theVector.pop_back();
+ --theSize;
}
return executionContext.getXObjectFactory().createString(XalanDOMString(theVector.begin(), theSize));