| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | dtoa_helper.cpp | 80 return 1; // 1: means the decimal digit in CountDecimalDigit32() 82 return 2; // 2: means the decimal digit in CountDecimalDigit32() 84 return 3; // 3: means the decimal digit in CountDecimalDigit32() 86 return 4; // 4: means the decimal digit in CountDecimalDigit32() 88 return 5; // 5: means the decimal digit in CountDecimalDigit32() 90 return 6; // 6: means the decimal digit in CountDecimalDigit32() 92 return 7; // 7: means the decimal digit in CountDecimalDigit32() 94 return 8; // 8: means the decimal digit in CountDecimalDigit32() 96 return 9; // 9: means the decimal digit in CountDecimalDigit32() 112 case 9: // 9: means the decimal digit in DigitGen() [all …]
|
| D | number_helper.cpp | 158 uint32_t digit = 0; in Int32ToString() local 160 digit = n % radix; in Int32ToString() 162 buf[index] = ToCharCode(digit) + 0X00; in Int32ToString() 197 int64_t digit = std::floor(fraction); in DoubleToString() local 198 fraction -= digit; in DoubleToString() 199 buffer[fractionCursor++] = CHARS[digit]; in DoubleToString() 420 JSTaggedValue NumberHelper::DoubleToPrecisionString(JSThread *thread, double number, int digit) in DoubleToPrecisionString() argument 423 return DoubleToFixedString(thread, number, digit - 1); in DoubleToPrecisionString() 427 int radixDigit = digit - logDigit - 1; in DoubleToPrecisionString() 429 if ((logDigit >= MIN_EXPONENT_DIGIT && logDigit < digit)) { in DoubleToPrecisionString() [all …]
|
| /arkcompiler/runtime_core/static_core/scripts/ |
| D | install-deps-qemu | 159 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \ 163 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
|
| /arkcompiler/runtime_core/scripts/ |
| D | install-deps-qemu | 154 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \ 158 | 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()
|
| /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() 343 EtsString *DoubleToExponential(double number, int digit) in DoubleToExponential() argument 346 if (digit < 0) { in DoubleToExponential() 349 ss << std::setiosflags(std::ios::scientific) << std::setprecision(digit) << number; in DoubleToExponential() 356 if (digit < 0) { in DoubleToExponential() 373 EtsString *DoubleToFixed(double number, int digit) in DoubleToFixed() argument 376 ss << std::setiosflags(std::ios::fixed) << std::setprecision(digit) << number; in DoubleToFixed() 380 EtsString *DoubleToPrecision(double number, int digit) in DoubleToPrecision() argument [all …]
|
| D | ets_intrinsics_helpers.h | 205 uint8_t digit = ToDigit(static_cast<uint8_t>(*p)); in Strtod() local 206 if (digit >= radix) { in Strtod() 210 number = number * radix + digit; in Strtod() 229 int digit = static_cast<int>((current > '9') ? (current - 'a' + DECIMAL) : (current - '0')); in Carry() local 230 digit = (digit == (radix - 1)) ? 0 : digit + 1; in Carry() 231 return CHARS[digit]; in Carry() 306 EtsString *DoubleToExponential(double number, int digit); 307 EtsString *DoubleToFixed(double number, int digit); 308 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 | 591 char32_t digit = Next(); in ParseHexEscape() local 592 if (!IsHexDigit(digit)) { in ParseHexEscape() 597 uint32_t cpValue = HexValue(digit) * MULTIPLIER; in ParseHexEscape() 599 digit = Next(); in ParseHexEscape() 600 if (!IsHexDigit(digit)) { in ParseHexEscape() 604 cpValue += HexValue(digit); in ParseHexEscape() 614 char32_t digit = Next(); in ParseUnicodeDigits() local 615 if (!IsHexDigit(digit)) { in ParseUnicodeDigits() 620 value = value * MULTIPLIER + HexValue(digit); in ParseUnicodeDigits()
|
| /arkcompiler/ets_frontend/ets2panda/lexer/regexp/ |
| D | regexp.cpp | 588 char32_t digit = Next(); in ParseHexEscape() local 589 if (!IsHexDigit(digit)) { in ParseHexEscape() 594 uint32_t cpValue = HexValue(digit) * MULTIPLIER; in ParseHexEscape() 596 digit = Next(); in ParseHexEscape() 597 if (!IsHexDigit(digit)) { in ParseHexEscape() 601 cpValue += HexValue(digit); in ParseHexEscape() 611 char32_t digit = Next(); in ParseUnicodeDigits() local 612 if (!IsHexDigit(digit)) { in ParseUnicodeDigits() 617 value = value * MULTIPLIER + HexValue(digit); in ParseUnicodeDigits()
|
| /arkcompiler/ets_frontend/test262/ |
| D | test-list-test262-other-fastverify-qemu-aot-pgo-built-ins-RegExp-part1.txt | 10 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-… 11 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-… 12 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape-… 13 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-digit-class-escape.… 14 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-esc… 15 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-esc… 19 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-esc… 24 test262/data/other_tests/built-ins/RegExp/CharacterClassEscapes/character-class-non-digit-class-esc…
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/regex/ |
| D | replace_assertion_boundaries_lookahead_and_character_class_any_digit.js | 17 var result = str.replace(regex, "DIGIT");
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | string_literal_01.sts | 18 /* @@? 16:13 Error SyntaxError: Hexadecimal digit expected. */
|
| D | InvalidLexer.sts | 71 /* @@? 19:19 Error SyntaxError: Invalid digit */ 104 /* @@? 48:1 Error SyntaxError: Invalid octal digit */
|
| /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_frontend/ets2panda/lexer/ |
| D | lexer.h | 512 …TooLargeNumber([[maybe_unused]] RadixType const number, [[maybe_unused]] std::uint32_t const digit) in ScanTooLargeNumber() argument 517 … static_cast<RadixType>(std::numeric_limits<RadixLimit>::max()) - number * RADIX < digit) { in ScanTooLargeNumber() 531 LogSyntaxError("Invalid digit"); in ScanNumberRadix() 539 auto const digit = HexValue(cp); in ScanNumberRadix() local 540 if (!ScanTooLargeNumber<RADIX, RadixType, RadixLimit>(number, digit)) { in ScanNumberRadix() 543 number = number * RADIX + digit; in ScanNumberRadix()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | date_parse.h | 66 // read the followed digit in ReadNumber() 229 // 6: 6 decimal digit in IsSixDecimalDigit() 235 // 4: 4 decimal digit in IsFourDecimalDigit() 241 // 2: 2 decimal digit in IsTwoDecimalDigit()
|
| /arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
| D | source_map.cpp | 321 uint32_t digit = Base64CharToInt(vStr[i]); in VlqRevCode() local 322 if (digit == DIGIT_NUM) { in VlqRevCode() 325 continuation = digit & VLQ_CONTINUATION_BIT; in VlqRevCode() 326 digit &= VLQ_BASE_MASK; in VlqRevCode() 327 result += digit << shift; in VlqRevCode()
|
| /arkcompiler/runtime_core/static_core/tests/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/es2panda/test/compiler/js/language/arguments-object/ |
| D | test-key-named-bound-value.js | 61 // Precision digit : 17
|