Searched refs:IGNORE_TRAILING (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_number_test.cpp | 426 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 429 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 432 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 435 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0() 438 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0.4); in HWTEST_F_L0() 441 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 10); in HWTEST_F_L0() 444 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 1000… in HWTEST_F_L0() 447 …ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 1000… in HWTEST_F_L0() 458 …NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::ALLOW_HEX + base::IGNORE_TRAILING), 1); in HWTEST_F_L0() 462 …::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::ALLOW_HEX + base::IGNORE_TRAILING))); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 35 static constexpr uint32_t IGNORE_TRAILING = 1U << 3U; variable
|
D | number_helper.cpp | 459 bool ignoreTrailing = (flags & IGNORE_TRAILING) != 0; in StringToDouble()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_number.cpp | 177 double result = NumberHelper::StringToDouble(str.begin(), str.end(), 0, base::IGNORE_TRAILING); in ParseFloat()
|