Removing DOMString/Cleaning up some whitespace. Not part of build yet. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@71997 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -21,14 +21,14 @@
|
||||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: StringFunctionCall.cpp,v 1.3 2000-04-20 10:11:28 kvisco%ziplink.net Exp $
|
||||
* $Id: StringFunctionCall.cpp,v 1.4 2000-06-11 12:29:29 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* StringFunctionCall
|
||||
* A representation of the XPath String funtions
|
||||
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
|
||||
* @version $Revision: 1.3 $ $Date: 2000-04-20 10:11:28 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000-06-11 12:29:29 $
|
||||
**/
|
||||
|
||||
#include "FunctionLib.h"
|
||||
@@ -121,7 +121,7 @@ ExprResult* StringFunctionCall::evaluate(Node* context, ContextState* cs) {
|
||||
break;
|
||||
case STRING_LENGTH:
|
||||
if ( requireParams(0, 1, cs) ) {
|
||||
DOMString resultStr;
|
||||
String resultStr;
|
||||
if ( argc == 1) {
|
||||
evaluateToString((Expr*)iter->next(),context, cs, resultStr);
|
||||
}
|
||||
@@ -226,7 +226,7 @@ ExprResult* StringFunctionCall::evaluate(Node* context, ContextState* cs) {
|
||||
evaluateToString((Expr*)iter->next(),context, cs, resultStr);
|
||||
}
|
||||
else {
|
||||
DOMString temp;
|
||||
String temp;
|
||||
XMLDOMUtils::getNodeValue(context, &temp);
|
||||
if ( cs->isStripSpaceAllowed(context) ) {
|
||||
XMLUtils::stripSpace(temp, resultStr);
|
||||
|
||||
Reference in New Issue
Block a user