Home
last modified time | relevance | path

Searched full:digit (Results 1 – 25 of 77) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/base/
Ddtoa_helper.cpp80 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 …]
Dnumber_helper.cpp158 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/
Dinstall-deps-qemu159 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
163 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
/arkcompiler/runtime_core/scripts/
Dinstall-deps-qemu154 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
158 | grep -Eo 'version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' \
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp564 …* 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 …]
Dmath_helper_test.cpp28 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/
Dets_intrinsics_helpers.cpp64 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 …]
Dets_intrinsics_helpers.h205 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/
Djs_date_time_format_first_test.cpp207 { "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 …]
Djs_date_time_format_second_test.cpp68 { "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/
DChar.sts316 * 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/
Didentifiers_n.params.yaml18 - '0abc' # digit
19 - '9abc' # digit
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/intrinsics/
Dto_string_cache.sts44 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/
Dregexp.cpp591 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/
Dregexp.cpp588 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/
Dtest-list-test262-other-fastverify-qemu-aot-pgo-built-ins-RegExp-part1.txt10 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/
Dreplace_assertion_boundaries_lookahead_and_character_class_any_digit.js17 var result = str.replace(regex, "DIGIT");
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dstring_literal_01.sts18 /* @@? 16:13 Error SyntaxError: Hexadecimal digit expected. */
DInvalidLexer.sts71 /* @@? 19:19 Error SyntaxError: Invalid digit */
104 /* @@? 48:1 Error SyntaxError: Invalid octal digit */
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_number.cpp271 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/
Dlexer.h512 …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/
Ddate_parse.h66 // 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/
Dsource_map.cpp321 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/
Dtest262-long-excluded.txt2 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/
Dtest-key-named-bound-value.js61 // Precision digit : 17

1234