зеркало из https://github.com/mozilla/pjs.git
Use DOMString instead of String (getting these changes back in).
This commit is contained in:
Родитель
579f14b69f
Коммит
ef6741cbff
|
@ -21,13 +21,13 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: BooleanResult.cpp,v 1.3 2000-04-12 10:59:28 kvisco%ziplink.net Exp $
|
||||
* $Id: BooleanResult.cpp,v 1.4 2000-04-13 14:14:02 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Boolean Expression result
|
||||
* @author <A href="mailto:kvisco@ziplink.net">Keith Visco</A>
|
||||
* @version $Revision: 1.3 $ $Date: 2000-04-12 10:59:28 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000-04-13 14:14:02 $
|
||||
**/
|
||||
|
||||
#include "ExprResult.h"
|
||||
|
@ -83,7 +83,7 @@ short BooleanResult::getResultType() {
|
|||
return ExprResult::BOOLEAN;
|
||||
} //-- getResultType
|
||||
|
||||
void BooleanResult::stringValue(String& str) {
|
||||
void BooleanResult::stringValue(DOMString& str) {
|
||||
if ( value ) str.append("true");
|
||||
else str.append("false");
|
||||
} //-- toString
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* Larry Fitzpatrick, OpenText, lef@opentext.com
|
||||
* -- changed constant short result types to enum
|
||||
*
|
||||
* $Id: ExprResult.h,v 1.3 2000-04-12 10:59:29 kvisco%ziplink.net Exp $
|
||||
* $Id: ExprResult.h,v 1.4 2000-04-13 14:14:33 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
#include "MITREObject.h"
|
||||
|
@ -42,7 +42,7 @@
|
|||
* <BR/>
|
||||
* Note: for NodeSet, see NodeSet.h <BR />
|
||||
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
|
||||
* @version $Revision: 1.3 $ $Date: 2000-04-12 10:59:29 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000-04-13 14:14:33 $
|
||||
*/
|
||||
|
||||
class ExprResult : public MITREObject {
|
||||
|
@ -100,7 +100,7 @@ public:
|
|||
void setValue(const BooleanResult& boolResult);
|
||||
|
||||
virtual short getResultType();
|
||||
virtual void stringValue(String& str);
|
||||
virtual void stringValue(DOMString& str);
|
||||
virtual MBool booleanValue();
|
||||
virtual double numberValue();
|
||||
|
||||
|
@ -125,7 +125,7 @@ public:
|
|||
MBool isNaN() const;
|
||||
|
||||
virtual short getResultType();
|
||||
virtual void stringValue(String& str);
|
||||
virtual void stringValue(DOMString& str);
|
||||
virtual MBool booleanValue();
|
||||
virtual double numberValue();
|
||||
|
||||
|
@ -148,7 +148,7 @@ public:
|
|||
void setValue(const String& str);
|
||||
|
||||
virtual short getResultType();
|
||||
virtual void stringValue(String& str);
|
||||
virtual void stringValue(DOMString& str);
|
||||
virtual MBool booleanValue();
|
||||
virtual double numberValue();
|
||||
|
||||
|
|
|
@ -21,14 +21,14 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: NumberResult.cpp,v 1.3 2000-04-12 10:59:29 kvisco%ziplink.net Exp $
|
||||
* $Id: NumberResult.cpp,v 1.4 2000-04-13 14:14:45 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* NumberResult
|
||||
* Represents the a number as the result of evaluating an Expr
|
||||
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
|
||||
* @version $Revision: 1.3 $ $Date: 2000-04-12 10:59:29 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000-04-13 14:14:45 $
|
||||
**/
|
||||
|
||||
#include "ExprResult.h"
|
||||
|
@ -90,7 +90,7 @@ short NumberResult::getResultType() {
|
|||
return ExprResult::NUMBER;
|
||||
} //-- getResultType
|
||||
|
||||
void NumberResult::stringValue(String& str) {
|
||||
void NumberResult::stringValue(DOMString& str) {
|
||||
int intVal = (int)value;
|
||||
if (intVal == value) { //-- no fraction
|
||||
Integer::toString(intVal, str);
|
||||
|
|
|
@ -21,14 +21,14 @@
|
|||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: StringResult.cpp,v 1.3 2000-04-12 10:59:29 kvisco%ziplink.net Exp $
|
||||
* $Id: StringResult.cpp,v 1.4 2000-04-13 14:13:33 Peter.VanderBeken%pandora.be Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* StringResult
|
||||
* Represents a String as a Result of evaluating an Expr
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.3 $ $Date: 2000-04-12 10:59:29 $
|
||||
* @version $Revision: 1.4 $ $Date: 2000-04-13 14:13:33 $
|
||||
**/
|
||||
#include "ExprResult.h"
|
||||
|
||||
|
@ -81,7 +81,7 @@ short StringResult::getResultType() {
|
|||
return ExprResult::STRING;
|
||||
} //-- getResultType
|
||||
|
||||
void StringResult::stringValue(String& str) {
|
||||
void StringResult::stringValue(DOMString& str) {
|
||||
str.append(this->value);
|
||||
} //-- stringValue
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче