Ongoing work to get Transformiix to build on Windows as a Mozilla component. Not part of the build.
- implemented rint() in NumberFunctionCall.cpp - Changed String to DOMString in calls to processAttrValueTemplate() in XSLTProcessor.cpp - Fixed up more windows makefiles. git-svn-id: svn://10.0.0.236/trunk@66652 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -60,6 +60,17 @@ NumberFunctionCall::NumberFunctionCall(short type) : FunctionCall() {
|
||||
}
|
||||
} //-- NumberFunctionCall
|
||||
|
||||
static double rint(double r)
|
||||
{
|
||||
double integerPart = 0;
|
||||
double fraction = 0;
|
||||
fraction = modf(r, &integerPart);
|
||||
if (fraction >= 0.5)
|
||||
integerPart++;
|
||||
|
||||
return integerPart;
|
||||
}
|
||||
|
||||
/**
|
||||
* Evaluates this Expr based on the given context node and processor state
|
||||
* @param context the context node for evaluation of this Expr
|
||||
|
||||
Reference in New Issue
Block a user