• Home
  • Raw
  • Download

Lines Matching refs:end

33 #define RETURN_IF_CONVERSION_END(p, end, result) \  argument
34 if ((p) == (end)) { \
55 bool NumberHelper::GotoNonspace(uint8_t **ptr, const uint8_t *end) in GotoNonspace() argument
57 while (*ptr < end) { in GotoNonspace()
67 if (base::utf_helper::ConvertRegionUtf8ToUtf16(*ptr, &c, end - *ptr, 1, 0) <= 0) { in GotoNonspace()
84 bool NumberHelper::IsEmptyString(const uint8_t *start, const uint8_t *end) in IsEmptyString() argument
87 return !NumberHelper::GotoNonspace(&p, end); in IsEmptyString()
134 size_t end = found; in DoubleToExponential() local
143 if (found < end - 1) { in DoubleToExponential()
144 result.erase(found + 1, end - found - 1); in DoubleToExponential()
173 JSTaggedValue NumberHelper::StringToDoubleWithRadix(const uint8_t *start, const uint8_t *end, int r… in StringToDoubleWithRadix() argument
178 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToDoubleWithRadix()
186 RETURN_IF_CONVERSION_END(++p, end, nanResult); in StringToDoubleWithRadix()
188 RETURN_IF_CONVERSION_END(++p, end, nanResult); in StringToDoubleWithRadix()
209 if (++p != end && (*p == 'x' || *p == 'X')) { in StringToDoubleWithRadix()
210 RETURN_IF_CONVERSION_END(++p, end, nanResult); in StringToDoubleWithRadix()
221 for (; p != end; ++p) { in StringToDoubleWithRadix()
242 } while (p != end); in StringToDoubleWithRadix()
417 double NumberHelper::StringToDouble(const uint8_t *start, const uint8_t *end, uint8_t radix, uint32… in StringToDouble() argument
421 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
428 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
431 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
441 if (++p == end || *p != *i) { in StringToDouble()
446 if (!ignoreTrailing && NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
456 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
461 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
471 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
481 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
498 RETURN_IF_CONVERSION_END(++p, end, SignedZero(sign)); in StringToDouble()
509 … if (!prefixRadix || ignoreTrailing || (pStart != p && !NumberHelper::GotoNonspace(&p, end))) { in StringToDouble()
521 } while (++p != end); in StringToDouble()
533 if (p == end || radix != DECIMAL) { in StringToDouble()
534 …if ((digits == 0 && !leadingZero) || (p != end && !ignoreTrailing && NumberHelper::GotoNonspace(&p… in StringToDouble()
543 …RETURN_IF_CONVERSION_END(++p, end, (digits > 0) ? (number * std::pow(radix, exponent)) : NAN_VALUE… in StringToDouble()
547 if (++p == end) { in StringToDouble()
562 if (radix == DECIMAL && (p != end && (*p == 'e' || *p == 'E'))) { in StringToDouble()
563 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
568 RETURN_IF_CONVERSION_END(++p, end, NAN_VALUE); in StringToDouble()
577 if (++p == end) { in StringToDouble()
583 if (!ignoreTrailing && NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
692 auto end = str.end(); in StringToBigInt() local
694 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToBigInt()
700 RETURN_IF_CONVERSION_END(++p, end, JSTaggedValue(NAN_VALUE)); in StringToBigInt()
703 RETURN_IF_CONVERSION_END(++p, end, JSTaggedValue(NAN_VALUE)); in StringToBigInt()
713 if (++p == end) { in StringToBigInt()
717 RETURN_IF_CONVERSION_END(++p, end, JSTaggedValue(NAN_VALUE)); in StringToBigInt()
723 RETURN_IF_CONVERSION_END(++p, end, JSTaggedValue(NAN_VALUE)); in StringToBigInt()
729 RETURN_IF_CONVERSION_END(++p, end, JSTaggedValue(NAN_VALUE)); in StringToBigInt()
740 if (++p == end) { in StringToBigInt()
752 if (pStart != p && !NumberHelper::GotoNonspace(&p, end)) { in StringToBigInt()
758 } while (++p != end); in StringToBigInt()