| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/dateformat/ |
| D | IntlDateFormatOptionsYear2DigitTest.ets | 32 addFormatResult("en-US", {year: "2-digit"}, "23") 33 addFormatResult("en-US", {year: "2-digit", month: "numeric"}, "10/23") 34 addFormatResult("en-US", {year: "2-digit", month: "numeric", day: "numeric"}, "10/11/23") 35 addFormatResult("en-US", {year: "2-digit", month: "numeric", day: "2-digit"}, "10/11/23") 36 addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "long"}, "10/23 Wednesday") 37 …addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "long", day: "numeric"}, "We… 38 …addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "long", day: "2-digit"}, "We… 39 addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "short"}, "10/23 Wed") 40 …addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "short", day: "numeric"}, "W… 41 …addFormatResult("en-US", {year: "2-digit", month: "numeric", weekday: "short", day: "2-digit"}, "W… [all …]
|
| D | IntlDateFormatCNOptionsYear2DigitTest.ets | 32 addFormatResult("zh-CN", {year: "2-digit"}, "23年") 34 // addFormatResult("zh-CN", {year: "2-digit", month: "numeric"}, "23/10") 35 addFormatResult("zh-CN", {year: "2-digit", month: "numeric", day: "numeric"}, "23/10/11") 36 addFormatResult("zh-CN", {year: "2-digit", month: "numeric", day: "2-digit"}, "23/10/11") 38 // addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "long"}, "23/10 星期三") 39 …addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "long", day: "numeric"}, "23… 40 …addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "long", day: "2-digit"}, "23… 42 // addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "short"}, "23/10 周三") 43 …addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "short", day: "numeric"}, "2… 44 …addFormatResult("zh-CN", {year: "2-digit", month: "numeric", weekday: "short", day: "2-digit"}, "2… [all …]
|
| D | IntlTimeFormatOptionsTest.ets | 29 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti… 30 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti… 31 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", fracti… 33 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 34 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 35 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 36 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 37 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 38 …addFormatResult(testDate, "en-US", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… 40 …addFormatResult(testDate, "zh-CN", { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZo… [all …]
|
| D | IntlDateFormatTest.ets | 41 addFormatResult("en-US", {year: "numeric", month: "numeric", day: "2-digit"}, "10/11/2023") 42 addFormatResult("en-US", {year: "numeric", month: "2-digit"}, "10/2023") 43 addFormatResult("en-US", {year: "numeric", month: "2-digit", day: "numeric"}, "10/11/2023") 44 addFormatResult("en-US", {year: "numeric", month: "2-digit", day: "2-digit"}, "10/11/2023") 47 addFormatResult("en-US", {year: "numeric", month: "long", day: "2-digit"}, "October 11, 2023") 50 addFormatResult("en-US", {year: "numeric", month: "short", day: "2-digit"}, "Oct 11, 2023") 53 addFormatResult("en-US", {year: "numeric", month: "narrow", day: "2-digit"}, "O 11, 2023") 54 addFormatResult("en-US", {year: "2-digit", month: "numeric"}, "10/23") 55 addFormatResult("en-US", {year: "2-digit", month: "numeric", day: "numeric"}, "10/11/23") 56 addFormatResult("en-US", {year: "2-digit", month: "numeric", day: "2-digit"}, "10/11/23") [all …]
|
| D | IntlDateFormatOptionsYearNumericTest.ets | 35 addFormatResult("en-US", {year: "numeric", month: "numeric", day: "2-digit"}, "10/11/2023") 38 …addFormatResult("en-US", {year: "numeric", month: "numeric", weekday: "long", day: "2-digit"}, "We… 41 …addFormatResult("en-US", {year: "numeric", month: "numeric", weekday: "short", day: "2-digit"}, "W… 44 …addFormatResult("en-US", {year: "numeric", month: "numeric", weekday: "narrow", day: "2-digit"}, "… 45 addFormatResult("en-US", {year: "numeric", month: "2-digit"}, "10/2023") 46 addFormatResult("en-US", {year: "numeric", month: "2-digit", day: "numeric"}, "10/11/2023") 47 addFormatResult("en-US", {year: "numeric", month: "2-digit", day: "2-digit"}, "10/11/2023") 48 addFormatResult("en-US", {year: "numeric", month: "2-digit", weekday: "long"}, "10/2023 Wednesday") 49 …addFormatResult("en-US", {year: "numeric", month: "2-digit", weekday: "long", day: "numeric"}, "We… 50 …addFormatResult("en-US", {year: "numeric", month: "2-digit", weekday: "long", day: "2-digit"}, "We… [all …]
|
| D | IntlDateFormatCNOptionsYearNumericTest.ets | 36 addFormatResult("zh-CN", {year: "numeric", month: "numeric", day: "2-digit"}, "2023/10/11") 40 …addFormatResult("zh-CN", {year: "numeric", month: "numeric", weekday: "long", day: "2-digit"}, "20… 44 …addFormatResult("zh-CN", {year: "numeric", month: "numeric", weekday: "short", day: "2-digit"}, "2… 48 …addFormatResult("zh-CN", {year: "numeric", month: "numeric", weekday: "narrow", day: "2-digit"}, "… 49 addFormatResult("zh-CN", {year: "numeric", month: "2-digit"}, "2023年10月") 50 addFormatResult("zh-CN", {year: "numeric", month: "2-digit", day: "numeric"}, "2023/10/11") 51 addFormatResult("zh-CN", {year: "numeric", month: "2-digit", day: "2-digit"}, "2023/10/11") 52 addFormatResult("zh-CN", {year: "numeric", month: "2-digit", weekday: "long"}, "2023年10月 星期三") 53 …addFormatResult("zh-CN", {year: "numeric", month: "2-digit", weekday: "long", day: "numeric"}, "20… 54 …addFormatResult("zh-CN", {year: "numeric", month: "2-digit", weekday: "long", day: "2-digit"}, "20… [all …]
|
| D | DateTimeFormatTest.ets | 31 …ons = {year: "numeric", month: "long", day: "numeric", hour: "2-digit", minute: "2-digit", timeZon… 35 …addDateFormatResult(testDate, "de-DE", {year: "2-digit", month: "short", day: "numeric"}, "5. Okt.… 36 …addDateFormatResult(testDate, "de-DE", {year: "2-digit", month: "narrow", day: "numeric"}, "5. O 2… 37 …addDateFormatResult(testDate, "de-DE", {year: "2-digit", month: "2-digit", day: "numeric"}, "5.10.… 39 …matResult(testDate, "de-DE", {year: "2-digit", month: "2-digit", day: "2-digit", hour: "2-digit", … 76 …const options: Intl.DateTimeFormatOptions = { hour: "2-digit", minute: "2-digit", second: "2-digit… 85 … const options: Intl.DateTimeFormatOptions = { year: "numeric", month: "2-digit", day: "2-digit" }
|
| D | IntlDateTimeFormatSupportedLocalesTest.ets | 18 …imeFormatOptions = { year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "…
|
| D | IntlDateFormatRangeToPartsOptionsTest.ets | 88 …addFormatRangeToPartsResult("en-US", { year: "numeric", month: "2-digit", day: "2-digit", timeZone… 99 …addFormatRangeToPartsResult("zh-CN", { year: "numeric", month: "2-digit", day: "2-digit", timeZone…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/tolocalestr/ |
| D | DateLocaleStringTest.ets | 26 …const options: Intl.DateTimeFormatOptions = { hour: "2-digit", minute: "2-digit", second: "2-digit… 40 year: "2-digit", 41 month: "2-digit", 42 day: "2-digit", 43 hour: "2-digit", 44 minute: "2-digit" 51 assertEQ(date.toLocaleTimeString(langTag, { hour: "2-digit", minute: "2-digit" }), "10:00") 52 assertEQ(date.toLocaleTimeString(locale, { hour: "2-digit", minute: "2-digit" }), "10:00") 54 …assertEQ(date.toLocaleTimeString(langTag, { year: "numeric", month: "2-digit", day: "2-digit" }), … 55 …assertEQ(date.toLocaleTimeString(locale, { year: "numeric", month: "2-digit", day: "2-digit" }), "… [all …]
|
| /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 | 163 uint32_t digit = 0; in Int32ToString() local 165 digit = n % radix; in Int32ToString() 167 buf[index] = ToCharCode(digit) + 0X00; in Int32ToString() 202 int64_t digit = std::floor(fraction); in DoubleToString() local 203 fraction -= digit; in DoubleToString() 204 buffer[fractionCursor++] = CHARS[digit]; in DoubleToString() 425 JSTaggedValue NumberHelper::DoubleToPrecisionString(JSThread *thread, double number, int digit) in DoubleToPrecisionString() argument 428 return DoubleToFixedString(thread, number, digit - 1); in DoubleToPrecisionString() 432 int radixDigit = digit - logDigit - 1; in DoubleToPrecisionString() 434 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 | 159 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \ 163 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
|
| /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 378 ss << std::setiosflags(std::ios::fixed) << std::setprecision(digit) << number; in DoubleToFixed() 382 ss << std::defaultfloat << std::setprecision(digit) << number; in DoubleToFixed() [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/base/tests/ |
| D | number_helper_test.cpp | 565 …* of number based on ten is less than zero and radix Digit is more than zero or it is gr… 566 …* and radix Digit is less than MAX_EXPONENT_DIGIT call the DoubleToFixed function.other … 734 int digit = 2; in HWTEST_F_L0() local 737 0.10000000000000001, digit, flags)); in HWTEST_F_L0() 740 digit = 3; in HWTEST_F_L0() 743 0.10000000000000001, digit, flags)); in HWTEST_F_L0() 746 digit = 2; in HWTEST_F_L0() 749 0.01, digit, flags)); in HWTEST_F_L0() 752 digit = 3; in HWTEST_F_L0() 755 0.01, digit, flags)); in HWTEST_F_L0() [all …]
|
| /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(thread, yearStr).c_str(), "2-digit"); in HWTEST_F_L0() 227 EXPECT_STREQ(LocaleHelper::ConvertToStdString(thread, monthStr).c_str(), "2-digit"); in HWTEST_F_L0() 229 EXPECT_STREQ(LocaleHelper::ConvertToStdString(thread, dayStr).c_str(), "2-digit"); in HWTEST_F_L0() 234 EXPECT_STREQ(LocaleHelper::ConvertToStdString(thread, 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() 247 { "year", "2-digit" }, in HWTEST_F_L0() 248 { "month", "2-digit" }, in HWTEST_F_L0() 249 { "day", "2-digit" } in HWTEST_F_L0() 253 { "hour", "2-digit" }, in HWTEST_F_L0() [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/stdlib/std/core/ |
| D | DateTimeFormat.ets | 205 case "2-digit": 228 case "2-digit": 259 case "2-digit": 307 case "2-digit": 321 case "2-digit": 335 case "2-digit": 393 day?: "numeric" | "2-digit" 401 hour?: "numeric" | "2-digit" 403 minute?: "numeric" | "2-digit" 404 month?: "numeric" | "2-digit" | "long" | "short" | "narrow" [all …]
|
| D | Char.ets | 450 * isBinDigit() checks whether the char represents a binary digit. 454 * @returns true if the char is a binary digit. 462 * isBinDigit() checks whether the underlying char represents a binary digit. 464 * @returns true if the char is a binary digit. 471 * isDecDigit() checks whether the char represents a decimal digit. 475 * @returns true if the char is a decimal digit. 483 * isDecDigit() checks whether the underlying char represents a decimal digit. 485 * @returns true if the char is a decimal digit. 492 * isBinDigit() checks whether the char represents a hexadecimal digit. 496 * @returns true if the char is a hexadecimal digit. [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-common-tests/intrinsics/ |
| D | to_string_cache.ets | 47 let digit = (ch - c'0') as int; 49 if (result < (Long.MIN_VALUE + digit) / 10) { 53 digit = -digit; 54 } else if (result > (Long.MAX_VALUE - digit) / 10) { 57 result = result * 10 + digit;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | std_core_Double.cpp | 137 double digit = std::isnan(d) ? 0 : d; in StdCoreDoubleToExponential() local 138 digit = (digit >= 0) ? std::floor(digit) : std::ceil(digit); in StdCoreDoubleToExponential() 140 if (UNLIKELY(digit > helpers::MAX_FRACTION || digit < helpers::MIN_FRACTION)) { in StdCoreDoubleToExponential() 147 return helpers::DoubleToExponential(objValue, static_cast<int>(digit)); in StdCoreDoubleToExponential()
|
| /arkcompiler/runtime_core/taihe/compiler/ |
| D | Taihe.g4 | 403 : DIGIT+ 419 : DIGIT* '.' DIGIT* 423 : (UNDERLINE | LETTER) (UNDERLINE | LETTER | DIGIT)* 435 fragment DIGIT
|