not part of build; fixing 72532; r=peterv
git-svn-id: svn://10.0.0.236/trunk@89807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -24,14 +24,14 @@
|
||||
* Marina Mechtcheriakova, mmarina@mindspring.com
|
||||
* -- changed some behavoir to be more compliant with spec
|
||||
*
|
||||
* $Id: NodeSetFunctionCall.cpp,v 1.3 2001-01-12 20:06:35 axel%pike.org Exp $
|
||||
* $Id: NodeSetFunctionCall.cpp,v 1.4 2001-03-19 21:48:19 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* NodeSetFunctionCall
|
||||
* A representation of the XPath NodeSet funtions
|
||||
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2001-01-12 20:06:35 $
|
||||
* @version $Revision: 1.4 $ $Date: 2001-03-19 21:48:19 $
|
||||
**/
|
||||
|
||||
#include "FunctionLib.h"
|
||||
@@ -126,11 +126,11 @@ ExprResult* NodeSetFunctionCall::evaluate(Node* context, ContextState* cs) {
|
||||
exprResult->stringValue(lIDList);
|
||||
};
|
||||
lIDList.trim();
|
||||
Int32 start=0;
|
||||
Int32 start=0,end;
|
||||
MBool hasSpace = MB_FALSE, isSpace;
|
||||
UNICODE_CHAR cc;
|
||||
String thisID;
|
||||
for (Int32 end=0; end<lIDList.length(); end++){
|
||||
for (end=0; end<lIDList.length(); end++){
|
||||
cc = lIDList.charAt(end);
|
||||
isSpace = (cc==' ' || cc=='\n' || cc=='\t'|| cc=='\r');
|
||||
if (isSpace && !hasSpace){
|
||||
@@ -142,6 +142,8 @@ ExprResult* NodeSetFunctionCall::evaluate(Node* context, ContextState* cs) {
|
||||
hasSpace = MB_FALSE;
|
||||
};
|
||||
};
|
||||
lIDList.subString(start, end, thisID);
|
||||
resultSet->add(context->getOwnerDocument()->getElementById(thisID));
|
||||
result = resultSet;
|
||||
};
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user