/external/chromium_org/third_party/WebKit/Source/core/platform/ |
Decimal.h | 44 // This class represents decimal base floating point number. 46 // FIXME: Once all C++ compiler support decimal type, we should replace this 47 // class to compiler supported one. See below URI for current status of decimal 49 class Decimal { 60 friend class Decimal; 96 Decimal(int32_t = 0); 97 Decimal(Sign, int exponent, uint64_t coefficient); 98 Decimal(const Decimal&); 100 Decimal& operator=(const Decimal&) [all...] |
DecimalTest.cpp | 32 #include "core/platform/Decimal.h" 40 std::ostream& operator<<(std::ostream& os, const Decimal& decimal) 42 Decimal::EncodedData data = decimal.value(); 46 << ", " << (data.sign() == Decimal::Negative ? "Negative" : "Positive") 47 << ")=" << decimal.toString().ascii().data(); 57 Decimal maximum; 58 Decimal minimum; 59 Decimal step [all...] |
Decimal.cpp | 32 #include "core/platform/Decimal.h" 52 // This class handles Decimal special values. 64 SpecialValueHandler(const Decimal& lhs, const Decimal& rhs); 66 Decimal value() const; 75 const Decimal& m_lhs; 76 const Decimal& m_rhs; 80 SpecialValueHandler::SpecialValueHandler(const Decimal& lhs, const Decimal& rhs) 90 const Decimal::EncodedData::FormatClass lhsClass = m_lhs.value().formatClass() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
StepRange.h | 24 #include "core/platform/Decimal.h" 65 Decimal defaultValue() const 73 StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, const Decimal& step, const StepDescription&); 74 Decimal acceptableError() const; 75 Decimal alignValueForStep(const Decimal& currentValue, const Decimal& newValue) const [all...] |
StepRange.cpp | 54 StepRange::StepRange(const Decimal& stepBase, const Decimal& minimum, const Decimal& maximum, const Decimal& step, const StepDescription& stepDescription) 68 Decimal StepRange::acceptableError() const 71 DEFINE_STATIC_LOCAL(const Decimal, twoPowerOfFloatMantissaBits, (Decimal::Positive, 0, UINT64_C(1) << FLT_MANT_DIG)); 72 return m_stepDescription.stepValueShouldBe == StepValueShouldBeReal ? m_step / twoPowerOfFloatMantissaBits : Decimal(0); 75 Decimal StepRange::alignValueForStep(const Decimal& currentValue, const Decimal& newValue) cons [all...] |
BaseDateAndTimeInputType.h | 45 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; 48 virtual String serialize(const Decimal&) const OVERRIDE; 59 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const OVERRIDE; 63 virtual Decimal defaultValueForStepUp() const OVERRIDE;
|
RangeInputType.h | 51 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const OVERRIDE; 62 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; 63 virtual String serialize(const Decimal&) const OVERRIDE; 74 virtual Decimal findClosestTickMarkValue(const Decimal&) OVERRIDE; 77 Vector<Decimal> m_tickMarkValues;
|
RangeInputType.cpp | 71 static Decimal ensureMaximum(const Decimal& proposedValue, const Decimal& minimum, const Decimal& fallbackValue) 107 void RangeInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState&) const 126 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), rangeDefaultMinimum); 127 const Decimal maximum = ensureMaximum(parseToNumber(element()->fastGetAttribute(maxAttr), rangeDefaultMaximum), minimum, rangeDefaultMaximum); 131 const Decimal step = equalIgnoringCase(precisionValue, "float") ? Decimal::nan() : 1; 135 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr (…) [all...] |
MonthInputType.cpp | 95 Decimal MonthInputType::defaultValueForStepUp() const 107 return Decimal::fromDouble(months); 114 const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(monthDefaultStepBase)); 115 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumMonth())); 116 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumMonth())); 117 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr)); 121 Decimal MonthInputType::parseToNumber(const String& src, const Decimal& defaultValue) cons [all...] |
MonthInputType.h | 56 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; 57 virtual Decimal defaultValueForStepUp() const OVERRIDE;
|
BaseDateAndTimeInputType.cpp | 62 const Decimal value = parseToNumber(element()->value(), Decimal::nan()); 66 void BaseDateAndTimeInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState&) const 81 Decimal BaseDateAndTimeInputType::defaultValueForStepUp() const 87 return Decimal::fromDouble(ms + (offset * msPerMinute)); 95 Decimal BaseDateAndTimeInputType::parseToNumber(const String& source, const Decimal& defaultValue) const 102 return Decimal::fromDouble(msec); 115 String BaseDateAndTimeInputType::serialize(const Decimal& value) const 127 Decimal step [all...] |
NumberInputType.cpp | 77 static RealNumberRenderSize calculateRenderSize(const Decimal& value) 141 void NumberInputType::setValueAsDecimal(const Decimal& newValue, TextFieldEventBehavior eventBehavior, ExceptionState& es) const 144 const Decimal floatMax = Decimal::fromDouble(numeric_limits<float>::max()); 170 const Decimal stepBase = parseToDecimalForNumberType(element()->fastGetAttribute(minAttr), numberDefaultStepBase); 172 const Decimal floatMax = Decimal::fromDouble(numeric_limits<float>::max()); 173 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), -floatMax); 174 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), floatMax); 175 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr (…) [all...] |
NumberInputType.h | 51 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const OVERRIDE; 58 virtual Decimal parseToNumber(const String&, const Decimal&) const OVERRIDE; 59 virtual String serialize(const Decimal&) const OVERRIDE;
|
InputType.h | 141 virtual void setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState&) const; 159 virtual Decimal defaultValueForStepUp() const; 164 virtual bool getAllowedValueStep(Decimal*) const; 266 virtual Decimal findClosestTickMarkValue(const Decimal&); 270 // the Decimal value for the parsing result if the parsing 273 virtual Decimal parseToNumber(const String&, const Decimal& defaultValue) const; 281 // Create a string representation of the specified Decimal value for the 284 virtual String serialize(const Decimal&) const [all...] |
DateInputType.cpp | 80 const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), 0); 81 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumDate())); 82 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumDate())); 83 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr));
|
WeekInputType.cpp | 78 const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), weekDefaultStepBase); 79 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumWeek())); 80 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumWeek())); 81 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr));
|
TimeInputType.cpp | 82 Decimal TimeInputType::defaultValueForStepUp() const 94 return Decimal::fromDouble(milliseconds); 101 const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), 0); 102 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumTime())); 103 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumTime())); 104 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr));
|
InputType.cpp | 208 setValueAsDecimal(Decimal::fromDouble(doubleValue), eventBehavior, es); 211 void InputType::setValueAsDecimal(const Decimal&, TextFieldEventBehavior, ExceptionState& es) const 257 const Decimal numericValue = parseToNumberOrNaN(value); 269 const Decimal numericValue = parseToNumberOrNaN(value); 276 Decimal InputType::defaultValueForStepUp() const 302 const Decimal numericValue = parseToNumberOrNaN(value); 315 const Decimal numericValue = parseToNumberOrNaN(value); 328 const Decimal numericValue = parseToNumberOrNaN(value); 375 const Decimal numericValue = parseToNumberOrNaN(value); 477 Decimal InputType::parseToNumber(const String&, const Decimal& defaultValue) cons [all...] |
DateTimeLocalInputType.cpp | 92 const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), 0); 93 const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumDateTime())); 94 const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumDateTime())); 95 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr));
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_decimal.py | 11 These are the test cases for the Decimal module. 14 the Decimal arithmetic using the tests provided by Mike Cowlishaw. The latter 19 www2.hursley.ibm.com/decimal/dectest.zip 32 from decimal import * 90 # Decimal behaves differently from decNumber for these testcases so these 148 # Name adapter to be able to change the Decimal and Context 189 # The following functions return True/False rather than a Decimal instance 206 """Class which tests the Decimal class against the test cases. 338 v = Decimal(v, self.context) 412 # The following classes test the behaviour of Decimal according to PEP 32 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_decimal.py | 11 These are the test cases for the Decimal module. 14 the Decimal arithmetic using the tests provided by Mike Cowlishaw. The latter 19 www2.hursley.ibm.com/decimal/dectest.zip 32 from decimal import * 90 # Decimal behaves differently from decNumber for these testcases so these 148 # Name adapter to be able to change the Decimal and Context 189 # The following functions return True/False rather than a Decimal instance 206 """Class which tests the Decimal class against the test cases. 338 v = Decimal(v, self.context) 412 # The following classes test the behaviour of Decimal according to PEP 32 [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/parser/ |
HTMLParserIdioms.h | 35 class Decimal; 51 String serializeForNumberType(const Decimal&); 54 // Convert the specified string to a decimal/double. If the conversion fails, the return value is fallback value or NaN if not specified. 57 Decimal parseToDecimalForNumberType(const String&); 58 Decimal parseToDecimalForNumberType(const String&, const Decimal& fallbackValue);
|
HTMLParserIdioms.cpp | 31 #include "core/platform/Decimal.h" 78 String serializeForNumberType(const Decimal& number) 81 // Decimal::toString appends exponent, e.g. "0e-18" 94 Decimal parseToDecimalForNumberType(const String& string, const Decimal& fallbackValue) 103 const Decimal value = Decimal::fromString(string); 110 const Decimal floatMax = Decimal::fromDouble(std::numeric_limits<float>::max()); 115 return value.isZero() ? Decimal(0) : value [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/ |
test_decode.py | 1 import decimal namespace 9 rval = self.loads('1.1', parse_float=decimal.Decimal) 10 self.assertTrue(isinstance(rval, decimal.Decimal)) 11 self.assertEqual(rval, decimal.Decimal('1.1'))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/ |
test_decode.py | 1 import decimal namespace 9 rval = self.loads('1.1', parse_float=decimal.Decimal) 10 self.assertTrue(isinstance(rval, decimal.Decimal)) 11 self.assertEqual(rval, decimal.Decimal('1.1'))
|