• Home
  • Raw
  • Download

Lines Matching full:if

35     if ((p) == (end)) {                          \
44 if (c >= '0' && c <= '9') { in ToDigit()
47 if (c >= 'A' && c <= 'Z') { in ToDigit()
50 if (c >= 'a' && c <= 'z') { in ToDigit()
61 if (c > INT8_MAX) { in GotoNonspace()
68 if (base::utf_helper::ConvertRegionUtf8ToUtf16(*ptr, &c, end - *ptr, 1, 0) <= 0) { in GotoNonspace()
72 if (!StringHelper::IsNonspace(c)) { in GotoNonspace()
94 if (number < 0.0) { in DoubleToString()
107 if (numberFraction != 0 && numberFraction >= delta) { in DoubleToString()
114 if (negative) { in DoubleToString()
124 if (digit < 0) { in DoubleToExponential()
131 if (found != CString::npos && found < result.size() - 2 && result[found + 2] == '0') { in DoubleToExponential()
134 if (digit < 0) { in DoubleToExponential()
137 if (result[found] != '0') { in DoubleToExponential()
141 if (result[found] == '.') { in DoubleToExponential()
144 if (found < end - 1) { in DoubleToExponential()
160 if (number == 0.0) { in DoubleToPrecision()
168 if ((logDigit >= 0 && radixDigit >= 0) || (logDigit < 0 && radixDigit <= MAX_EXPONENT_DIGIT)) { in DoubleToPrecision()
179 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToDoubleWithRadix()
185 if (*p == '-') { in StringToDoubleWithRadix()
188 } else if (*p == '+') { in StringToDoubleWithRadix()
193 // 4. If R  0, then in StringToDoubleWithRadix()
194 // a. If R < 2 or R > 36, return NaN. in StringToDoubleWithRadix()
195 // b. If R  16, let stripPrefix be false. in StringToDoubleWithRadix()
196 if (radix != 0) { in StringToDoubleWithRadix()
197 if (radix < MIN_RADIX || radix > MAX_RADIX) { in StringToDoubleWithRadix()
200 if (radix != HEXADECIMAL) { in StringToDoubleWithRadix()
207 if (stripPrefix) { in StringToDoubleWithRadix()
208 if (*p == '0') { in StringToDoubleWithRadix()
210 if (++p != end && (*p == 'x' || *p == 'X')) { in StringToDoubleWithRadix()
226 if (m > MAX_MULTIPER) { in StringToDoubleWithRadix()
231 if (currentBit >= radix) { in StringToDoubleWithRadix()
240 if (isDone) { in StringToDoubleWithRadix()
245 if (size == 0) { in StringToDoubleWithRadix()
249 if (negative) { in StringToDoubleWithRadix()
287 if (fraction > HALF && fraction + delta > 1) { in DecimalsToString()
291 if (result[fractionEnd] == '0') { in DecimalsToString()
297 if (fractionEnd == 0) { in DecimalsToString()
305 if (found != CString::npos) { in DecimalsToString()
322 if (number.IsInt()) { in NumberToString()
327 if (std::isnan(d)) { in NumberToString()
330 if (d == 0.0) { in NumberToString()
333 if (d >= INT32_MIN + 1 && d <= INT32_MAX && d == static_cast<double>(static_cast<int32_t>(d))) { in NumberToString()
338 if (d < 0) { in NumberToString()
343 if (std::isinf(d)) { in NumberToString()
351 …// and k is as small as possible. If there are multiple possibilities for s, choose the value of s… in NumberToString()
352 …// 10n−k is closest in value to m. If there are two such possible values of s, choose the one that… in NumberToString()
354 if (0.1 <= d && d < 1) { // 0.1: 10 ** -1 in NumberToString()
366 if (sFast / static_cast<double>(power) == d) { // s * (10 ** -k) in NumberToString()
378 if (n > 0 && n <= 21) { // NOLINT(readability-magic-numbers) in NumberToString()
380 if (k <= n) { in NumberToString()
381 … // 6. If k ≤ n ≤ 21, return the String consisting of the code units of the k digits of the decimal in NumberToString()
386 …// 7. If 0 < n ≤ 21, return the String consisting of the code units of the most significant n digi… in NumberToString()
391 } else if (-6 < n && n <= 0) { // NOLINT(readability-magic-numbers) in NumberToString()
392 …// 8. If −6 < n ≤ 0, return the String consisting of the code unit 0x0030 (DIGIT ZERO), followed b… in NumberToString()
398 if (k == 1) { in NumberToString()
399 … // 9. Otherwise, if k = 1, return the String consisting of the code unit of the single digit of s in NumberToString()
413 if (std::isnan(d)) { in TruncateDouble()
416 if (!std::isfinite(d)) { in TruncateDouble()
420 if (d == 0.0) { in TruncateDouble()
428 if (d >= static_cast<double>(std::numeric_limits<int64_t>::max())) { in DoubleToInt64()
431 if (d <= static_cast<double>(std::numeric_limits<int64_t>::min())) { in DoubleToInt64()
441 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
447 if (*p == '+') { in StringToDouble()
450 } else if (*p == '-') { in StringToDouble()
458 if (*p == INF[0]) { in StringToDouble()
461 if (++p == end || *p != *i) { in StringToDouble()
466 if (!ignoreTrailing && NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
475 if (*p == '0' && radix == 0) { in StringToDouble()
477 if (*p == 'x' || *p == 'X') { in StringToDouble()
478 if ((flags & ALLOW_HEX) == 0) { in StringToDouble()
482 if (sign != Sign::NONE) { in StringToDouble()
487 } else if (*p == 'o' || *p == 'O') { in StringToDouble()
488 if ((flags & ALLOW_OCTAL) == 0) { in StringToDouble()
492 if (sign != Sign::NONE) { in StringToDouble()
497 } else if (*p == 'b' || *p == 'B') { in StringToDouble()
498 if ((flags & ALLOW_BINARY) == 0) { in StringToDouble()
502 if (sign != Sign::NONE) { in StringToDouble()
512 if (radix == 0) { in StringToDouble()
528 if (c >= radix) { in StringToDouble()
529if (!prefixRadix || ignoreTrailing || (pStart != p && !NumberHelper::GotoNonspace(&p, end))) { in StringToDouble()
536 if (intNumber < numberMax) { in StringToDouble()
544 if (sign == Sign::NEG) { in StringToDouble()
545 if (number == 0) { in StringToDouble()
553 if (p == end || radix != DECIMAL) { in StringToDouble()
554if ((digits == 0 && !leadingZero) || (p != end && !ignoreTrailing && NumberHelper::GotoNonspace(&p… in StringToDouble()
562 if (radix == DECIMAL && *p == '.') { in StringToDouble()
568 if (++p == end) { in StringToDouble()
573 if (digits == 0 && !leadingZero) { in StringToDouble()
583 if (radix == DECIMAL && (p != end && (*p == 'e' || *p == 'E'))) { in StringToDouble()
587 if (*p == '+' || *p == '-') { in StringToDouble()
593 if (additionalExponent > static_cast<int>(MAX_EXPONENT / radix)) { in StringToDouble()
598 if (++p == end) { in StringToDouble()
604 if (!ignoreTrailing && NumberHelper::GotoNonspace(&p, end)) { in StringToDouble()
610 if (sign == Sign::NEG) { in StringToDouble()
614 if (*i != static_cast<uint8_t>('.')) { in StringToDouble()
632 if (*p == '-') { in Strtod()
641 if (digit >= radix) { in Strtod()
644 if (number < numberMax) { in Strtod()
651 if (exponent < 0) { in Strtod()
664 if (exp < static_cast<int>(bits - 1)) { in DoubleToInt()
667 } else if (exp < static_cast<int>(bits + DOUBLE_SIGNIFICAND_SIZE)) { in DoubleToInt()
674 if ((u64 & DOUBLE_SIGN_MASK) == DOUBLE_SIGN_MASK && ret != INT32_MIN) { in DoubleToInt()
686 if (d > INT_MAX) { in DoubleInRangeInt32()
689 if (d < INT_MIN) { in DoubleInRangeInt32()
699 if (strLen == 0) { in StringToBigInt()
708 if (!NumberHelper::GotoNonspace(&p, end)) { in StringToBigInt()
713 if (*p == '+') { in StringToBigInt()
716 } else if (*p == '-') { in StringToBigInt()
721 if (isalpha(*p)) { in StringToBigInt()
726 if (*p == '0') { in StringToBigInt()
727 if (++p == end) { in StringToBigInt()
730 if (*p == 'x' || *p == 'X') { in StringToBigInt()
732 if (sign != Sign::NONE) { in StringToBigInt()
736 } else if (*p == 'o' || *p == 'O') { in StringToBigInt()
738 if (sign != Sign::NONE) { in StringToBigInt()
742 } else if (*p == 'b' || *p == 'B') { in StringToBigInt()
744 if (sign != Sign::NONE) { in StringToBigInt()
754 if (++p == end) { in StringToBigInt()
760 if (sign == Sign::NEG) { in StringToBigInt()
765 if (c >= radix) { in StringToBigInt()
766 if (pStart != p && !NumberHelper::GotoNonspace(&p, end)) { in StringToBigInt()
779 if (result == -1) { in GetBase()
785 if (digits > 1) { in GetBase()
786if (memcpy_s(buf + 1, digits, bufTmp + 2, digits) != EOK) { // 2 means add the point char to buf in GetBase()
807 if (strtod(bufTmp, NULL) == d) { in GetMinmumDigits()
841 if (randomState == 0) in InitRandom()