Home
last modified time | relevance | path

Searched refs:toNumber (Results 1 – 14 of 14) sorted by relevance

/external/v8/test/mjsunit/
Dstr-to-num.js28 function toNumber(val) { function
47 assertEquals(123, toNumber(" 123"));
48 assertEquals(123, toNumber("\n123"));
49 assertEquals(123, toNumber("\r123"));
50 assertEquals(123, toNumber("\t123"));
51 assertEquals(123, toNumber("\f123"));
53 assertEquals(123, toNumber("123 "));
54 assertEquals(123, toNumber("123\n"));
55 assertEquals(123, toNumber("123\r"));
56 assertEquals(123, toNumber("123\t"));
[all …]
/external/chromium_org/v8/test/mjsunit/
Dstr-to-num.js28 function toNumber(val) { function
47 assertEquals(123, toNumber(" 123"));
48 assertEquals(123, toNumber("\n123"));
49 assertEquals(123, toNumber("\r123"));
50 assertEquals(123, toNumber("\t123"));
51 assertEquals(123, toNumber("\f123"));
53 assertEquals(123, toNumber("123 "));
54 assertEquals(123, toNumber("123\n"));
55 assertEquals(123, toNumber("123\r"));
56 assertEquals(123, toNumber("123\t"));
[all …]
/external/chromium_org/third_party/WebKit/Source/core/xml/
DXPathPredicate.cpp62 return -p.toNumber(); in evaluate()
77 double leftVal = lhs.toNumber(); in evaluate()
78 double rightVal = rhs.toNumber(); in evaluate()
123 if (compare(Value(stringValue(lhsSet[lindex])).toNumber(), rhs)) in compare()
148 if (compare(lhs, Value(stringValue(rhsSet[rindex])).toNumber())) in compare()
171 equal = lhs.toNumber() == rhs.toNumber(); in compare()
179 return lhs.toNumber() > rhs.toNumber(); in compare()
181 return lhs.toNumber() >= rhs.toNumber(); in compare()
183 return lhs.toNumber() < rhs.toNumber(); in compare()
185 return lhs.toNumber() <= rhs.toNumber(); in compare()
[all …]
DXPathFunctions.cpp502 double doublePos = arg(1)->evaluate().toNumber(); in evaluate()
509 double doubleLen = arg(2)->evaluate().toNumber(); in evaluate()
626 return Value(Expression::evaluationContext().node.get()).toNumber(); in evaluate()
627 return arg(0)->evaluate().toNumber(); in evaluate()
642 sum += Value(stringValue(nodes[i])).toNumber(); in evaluate()
649 return floor(arg(0)->evaluate().toNumber()); in evaluate()
654 return ceil(arg(0)->evaluate().toNumber()); in evaluate()
670 return round(arg(0)->evaluate().toNumber()); in evaluate()
DXPathValue.cpp84 double Value::toNumber() const in toNumber() function in WebCore::XPath::Value
88 return Value(toString()).toNumber(); in toNumber()
DXPathResult.cpp77 m_value = m_value.toNumber(); in convertTo()
127 return m_value.toNumber(); in numberValue()
DXPathValue.h82 double toNumber() const;
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGAnimatedNumber.cpp91 float toNumber = to->number(); in calculateAnimatedValue() local
97 …loat>(parseNumberFromString, m_animationElement->toPropertyValueType(), toNumber, m_contextElement… in calculateAnimatedValue()
99 …m_animationElement->animateAdditiveNumber(percentage, repeatCount, fromNumber, toNumber, toAtEndOf… in calculateAnimatedValue()
DSVGAnimationElement.h147 …eNumber(float percentage, unsigned repeatCount, float fromNumber, float toNumber, float toAtEndOfD… in animateAdditiveNumber() argument
151 number = percentage < 0.5 ? fromNumber : toNumber; in animateAdditiveNumber()
153 number = (toNumber - fromNumber) * percentage + fromNumber; in animateAdditiveNumber()
/external/apache-xml/src/main/java/org/apache/xalan/extensions/
DExpressionContext.java60 public double toNumber(Node n); in toNumber() method
/external/apache-xml/src/main/java/org/apache/xpath/
DXPathContext.java1129 public double toNumber(org.w3c.dom.Node n) in toNumber() method in XPathContext.XPathExpressionContext
/external/chromium_org/chrome/third_party/chromevox/
DchromeVoxChromePageScript.js45 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpty(a)?NaN:b};goog.st… function
DchromeVoxChromeOptionsScript.js106 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpty(a)?NaN:b};goog.st… function
DchromeVoxChromeBackgroundScript.js45 goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpty(a)?NaN:b};goog.st… function