Lines Matching defs:trimmed
121 // The input buffer has been trimmed. Therefore the last digit must be
176 static bool DoubleStrtod(Vector<const char> trimmed,
189 if (trimmed.length() <= kMaxExactDoubleIntegerDecimalDigits) {
191 // The trimmed input fits into a double.
199 *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
200 ASSERT(read_digits == trimmed.length());
206 *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
207 ASSERT(read_digits == trimmed.length());
212 kMaxExactDoubleIntegerDecimalDigits - trimmed.length();
215 // The trimmed string was short and we can multiply it with
218 *result = static_cast<double>(ReadUint64(trimmed, &read_digits));
219 ASSERT(read_digits == trimmed.length());
419 Vector<const char> trimmed = TrimTrailingZeros(left_trimmed);
420 exponent += left_trimmed.length() - trimmed.length();
421 if (trimmed.length() == 0) return 0.0;
422 if (trimmed.length() > kMaxSignificantDecimalDigits) {
425 TrimToMaxSignificantDigits(trimmed, exponent,
431 if (exponent + trimmed.length() - 1 >= kMaxDecimalPower) return V8_INFINITY;
432 if (exponent + trimmed.length() <= kMinDecimalPower) return 0.0;
435 if (DoubleStrtod(trimmed, exponent, &guess) ||
436 DiyFpStrtod(trimmed, exponent, &guess)) {
439 return BignumStrtod(trimmed, exponent, guess);