| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | dtoa_helper.cpp | 78 return 1; // 1: means the decimal digit in CountDecimalDigit32() 80 return 2; // 2: means the decimal digit in CountDecimalDigit32() 82 return 3; // 3: means the decimal digit in CountDecimalDigit32() 84 return 4; // 4: means the decimal digit in CountDecimalDigit32() 86 return 5; // 5: means the decimal digit in CountDecimalDigit32() 88 return 6; // 6: means the decimal digit in CountDecimalDigit32() 90 return 7; // 7: means the decimal digit in CountDecimalDigit32() 92 return 8; // 8: means the decimal digit in CountDecimalDigit32() 94 return 9; // 9: means the decimal digit in CountDecimalDigit32() 110 case 9: // 9: means the decimal digit in DigitGen() [all …]
|
| D | number_helper.cpp | 160 uint32_t digit = 0; in Int32ToString() local 162 digit = n % radix; in Int32ToString() 164 buf[index] = ToCharCode(digit) + 0X00; in Int32ToString() 199 int64_t digit = std::floor(fraction); in DoubleToString() local 200 fraction -= digit; in DoubleToString() 201 buffer[fractionCursor++] = CHARS[digit]; in DoubleToString() 422 JSTaggedValue NumberHelper::DoubleToPrecisionString(JSThread *thread, double number, int digit) in DoubleToPrecisionString() argument 425 return DoubleToFixedString(thread, number, digit - 1); in DoubleToPrecisionString() 429 int radixDigit = digit - logDigit - 1; in DoubleToPrecisionString() 431 if ((logDigit >= MIN_EXPONENT_DIGIT && logDigit < digit)) { in DoubleToPrecisionString() [all …]
|
| /arkcompiler/runtime_core/scripts/ |
| D | install-deps-qemu | 154 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \ 158 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
|
| /arkcompiler/runtime_core/static_core/scripts/ |
| D | install-deps-qemu | 160 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \ 164 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | number_helper_test.cpp | 564 …* of number based on ten is less than zero and radix Digit is more than zero or it is gr… 565 …* and radix Digit is less than MAX_EXPONENT_DIGIT call the DoubleToFixed function.other … 733 int digit = 2; in HWTEST_F_L0() local 736 0.10000000000000001, digit, flags)); in HWTEST_F_L0() 739 digit = 3; in HWTEST_F_L0() 742 0.10000000000000001, digit, flags)); in HWTEST_F_L0() 745 digit = 2; in HWTEST_F_L0() 748 0.01, digit, flags)); in HWTEST_F_L0() 751 digit = 3; in HWTEST_F_L0() 754 0.01, digit, flags)); in HWTEST_F_L0() [all …]
|
| D | math_helper_test.cpp | 28 const uint32_t commonInput = static_cast<uint32_t>(0b111111111) << 13; // 13 : left shift digit in HWTEST_F_L0() 36 const uint64_t commonInput = static_cast<uint64_t>(0b111111111) << 53; // 53 : left shift digit in HWTEST_F_L0()
|
| D | bit_helper_test.cpp | 73 …uint32_t uint32CommonValue2 = std::numeric_limits<uint32_t>::max() >> 31; // 31 : right shift digit in HWTEST_F_L0() 89 …uint64_t uint64CommonValue2 = std::numeric_limits<uint64_t>::max() >> 63; // 63 : right shift digit in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
| D | ets_intrinsics_helpers.cpp | 64 uint8_t digit; in ParseExponent() local 65 while ((digit = ToDigit(*p)) < radix) { in ParseExponent() 69 …dditionalExponent = additionalExponent * static_cast<int32_t>(radix) + static_cast<int32_t>(digit); in ParseExponent() 339 EtsString *DoubleToExponential(double number, int digit) in DoubleToExponential() argument 342 if (digit < 0) { in DoubleToExponential() 345 ss << std::setiosflags(std::ios::scientific) << std::setprecision(digit) << number; in DoubleToExponential() 352 if (digit < 0) { in DoubleToExponential() 369 EtsString *DoubleToFixed(double number, int digit) in DoubleToFixed() argument 372 ss << std::setiosflags(std::ios::fixed) << std::setprecision(digit) << number; in DoubleToFixed() 376 EtsString *DoubleToPrecision(double number, int digit) in DoubleToPrecision() argument [all …]
|
| D | ets_intrinsics_helpers.h | 201 uint8_t digit = ToDigit(static_cast<uint8_t>(*p)); in Strtod() local 202 if (digit >= radix) { in Strtod() 206 number = number * radix + digit; in Strtod() 225 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() local 226 digit = (digit == (radix - 1)) ? 0 : digit + 1; in Carry() 227 return CHARS[digit]; in Carry() 302 EtsString *DoubleToExponential(double number, int digit); 303 EtsString *DoubleToFixed(double number, int digit); 304 EtsString *DoubleToPrecision(double number, int digit);
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_date_time_format_first_test.cpp | 207 { "year", "2-digit" }, in HWTEST_F_L0() 208 { "month", "2-digit" }, in HWTEST_F_L0() 209 { "day", "2-digit" } in HWTEST_F_L0() 213 { "hour", "2-digit" }, in HWTEST_F_L0() 214 { "minute", "2-digit" }, in HWTEST_F_L0() 215 { "second", "2-digit" }, in HWTEST_F_L0() 225 EXPECT_STREQ(LocaleHelper::ConvertToStdString(yearStr).c_str(), "2-digit"); in HWTEST_F_L0() 227 EXPECT_STREQ(LocaleHelper::ConvertToStdString(monthStr).c_str(), "2-digit"); in HWTEST_F_L0() 229 EXPECT_STREQ(LocaleHelper::ConvertToStdString(dayStr).c_str(), "2-digit"); in HWTEST_F_L0() 234 EXPECT_STREQ(LocaleHelper::ConvertToStdString(hourStr).c_str(), "2-digit"); in HWTEST_F_L0() [all …]
|
| D | js_date_time_format_second_test.cpp | 68 { "hour", "2-digit" }, in FormatCommonSet() 69 { "minute", "2-digit" }, in FormatCommonSet() 70 { "second", "2-digit" }, in FormatCommonSet() 90 { "year", "2-digit" }, in FormatDateTimeCommon() 91 { "month", "2-digit" }, in FormatDateTimeCommon() 92 { "day", "2-digit" } in FormatDateTimeCommon() 246 { "year", "2-digit" }, in HWTEST_F_L0() 247 { "month", "2-digit" }, in HWTEST_F_L0() 248 { "day", "2-digit" } in HWTEST_F_L0() 252 { "hour", "2-digit" }, in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Char.sts | 316 * isBinDigit() checks whether the char represents a binary digit. 320 * @returns true if the char is a binary digit. 328 * isBinDigit() checks whether the underlying char represents a binary digit. 330 * @returns true if the char is a binary digit. 337 * isDecDigit() checks whether the char represents a decimal digit. 341 * @returns true if the char is a decimal digit. 349 * isDecDigit() checks whether the underlying char represents a decimal digit. 351 * @returns true if the char is a decimal digit. 358 * isBinDigit() checks whether the char represents a hexadecimal digit. 362 * @returns true if the char is a hexadecimal digit. [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/02.lexical_elements/06.identifiers/ |
| D | identifiers_n.params.yaml | 18 - '0abc' # digit 19 - '9abc' # digit
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/ |
| D | to_string_cache.sts | 44 let digit = (char - c'0') as int; 46 if (result < (Long.MIN_VALUE + digit) / 10) { 50 digit = -digit; 51 } else if (result > (Long.MAX_VALUE - digit) / 10) { 54 result = result * 10 + digit;
|
| /arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
| D | regexp.cpp | 593 char32_t digit = Next(); in ParseHexEscape() local 594 if (!IsHexDigit(digit)) { in ParseHexEscape() 599 uint32_t cpValue = HexValue(digit) * MULTIPLIER; in ParseHexEscape() 601 digit = Next(); in ParseHexEscape() 602 if (!IsHexDigit(digit)) { in ParseHexEscape() 606 cpValue += HexValue(digit); in ParseHexEscape() 616 char32_t digit = Next(); in ParseUnicodeDigits() local 617 if (!IsHexDigit(digit)) { in ParseUnicodeDigits() 622 value = value * MULTIPLIER + HexValue(digit); in ParseUnicodeDigits()
|
| /arkcompiler/ets_frontend/ets2panda/lexer/regexp/ |
| D | regexp.cpp | 602 char32_t digit = Next(); in ParseHexEscape() local 603 if (!IsHexDigit(digit)) { in ParseHexEscape() 608 uint32_t cpValue = HexValue(digit) * MULTIPLIER; in ParseHexEscape() 610 digit = Next(); in ParseHexEscape() 611 if (!IsHexDigit(digit)) { in ParseHexEscape() 615 cpValue += HexValue(digit); in ParseHexEscape() 625 char32_t digit = Next(); in ParseUnicodeDigits() local 626 if (!IsHexDigit(digit)) { in ParseUnicodeDigits() 631 value = value * MULTIPLIER + HexValue(digit); in ParseUnicodeDigits()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_number.cpp | 271 double digit = digitInt.GetNumber(); in ToFixed() local 272 if (digit < base::MIN_FRACTION || digit > base::MAX_FRACTION) { in ToFixed() 294 return NumberHelper::DoubleToFixedString(thread, valueNumber, static_cast<int>(digit)); in ToFixed() 398 double digit = digitInt.GetNumber(); in ToPrecision() local 399 if (digit < base::MIN_FRACTION + 1 || digit > base::MAX_FRACTION) { in ToPrecision() 402 return NumberHelper::DoubleToPrecisionString(thread, valueNumber, static_cast<int>(digit)); in ToPrecision()
|
| /arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
| D | source_map.cpp | 313 uint32_t digit = Base64CharToInt(vStr[i]); in VlqRevCode() local 314 if (digit == DIGIT_NUM) { in VlqRevCode() 317 continuation = digit & VLQ_CONTINUATION_BIT; in VlqRevCode() 318 digit &= VLQ_BASE_MASK; in VlqRevCode() 319 result += digit << shift; in VlqRevCode()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | date_parse.h | 65 // read the followed digit in ReadNumber() 228 // 6: 6 decimal digit in IsSixDecimalDigit() 234 // 4: 4 decimal digit in IsFourDecimalDigit() 240 // 2: 2 decimal digit in IsTwoDecimalDigit()
|
| D | js_date_time_format.h | 84 … IcuPatternDesc("hour", {{data1, "2-digit"}, {data2, "numeric"}}, {"2-digit", "numeric"}))) {} in Pattern()
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/test262/ |
| D | test262-long-excluded.txt | 2 built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-plus-quantifier-flags… 3 built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-escape-flags-u.js
|
| /arkcompiler/ets_frontend/ets2panda/lexer/ |
| D | lexer.h | 499 ThrowError("Invalid octal digit"); in ScanNumberLeadingZeroImpl() 535 ThrowError("Invalid digit"); in ScanNumberRadix() 543 auto digit = HexValue(cp); in ScanNumberRadix() local 547 number = number * RADIX + digit; in ScanNumberRadix()
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/ |
| D | test-key-named-bound-value.js | 61 // Precision digit : 17
|
| D | test-key-named-called-func-bound-value.js | 123 // Precision digit : 17
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_number_stub_builder.cpp | 438 DEFVARIABLE(digit, VariableType::INT32(), Int32(0)); in NumberToString() 451 digit = Int32Mod(*n, radix); in NumberToString() 453 GateRef digitChar = ToCharCode(*digit); in NumberToString()
|