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...@apache.org on 2001/06/14 21:10:09 UTC
cvs commit: xml-xalan/c/src/XPath FunctionID.cpp
dbertoni 01/06/14 12:10:09
Modified: c/src/XPath FunctionID.cpp
Log:
Use new StringTokenizer overload and cached string.
Revision Changes Path
1.7 +8 -2 xml-xalan/c/src/XPath/FunctionID.cpp
Index: FunctionID.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionID.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- FunctionID.cpp 2001/01/03 19:32:36 1.6
+++ FunctionID.cpp 2001/06/14 19:10:04 1.7
@@ -146,10 +146,16 @@
StringTokenizer theTokenizer(theResultString);
+ typedef XPathExecutionContext::GetAndReleaseCachedString GetAndReleaseCachedString;
+
+ GetAndReleaseCachedString theGuard(executionContext);
+
+ XalanDOMString& theToken = theGuard.get();
+
// Parse the result string...
while(theTokenizer.hasMoreTokens() == true)
{
- const XalanDOMString theToken = theTokenizer.nextToken();
+ theTokenizer.nextToken(theToken);
if (length(theToken) > 0)
{
@@ -169,7 +175,7 @@
}
}
}
- } //while
+ }
}
return executionContext.getXObjectFactory().createNodeSet(theNodeList);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org