/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | string_helpers_test.cpp | 47 ASSERT_FALSE(ParseInt("x", &i)); in TEST() 50 ASSERT_FALSE(ParseInt("123x", &i)); in TEST() 53 ASSERT_TRUE(ParseInt("123", &i)); in TEST() 57 EXPECT_TRUE(ParseInt(" 123", &i)); in TEST() 59 ASSERT_TRUE(ParseInt("-123", &i)); in TEST() 62 EXPECT_TRUE(ParseInt(" -123", &i)); in TEST() 66 ASSERT_TRUE(ParseInt("1234", &s)); in TEST() 75 ASSERT_TRUE(ParseInt("12", &i, 0, 15)); in TEST() 78 ASSERT_FALSE(ParseInt("-12", &i, 0, 15)); in TEST() 81 ASSERT_FALSE(ParseInt("1 in TEST() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | string_helpers_test.cpp | 51 ASSERT_FALSE(ParseInt("x", &i)); in TEST() 54 ASSERT_FALSE(ParseInt("123x", &i)); in TEST() 57 ASSERT_TRUE(ParseInt("123", &i)); in TEST() 61 EXPECT_TRUE(ParseInt(" 123", &i)); in TEST() 63 ASSERT_TRUE(ParseInt("-123", &i)); in TEST() 66 EXPECT_TRUE(ParseInt(" -123", &i)); in TEST() 71 ASSERT_TRUE(ParseInt("1234", &s)); in TEST() 79 ASSERT_TRUE(ParseInt("12", &i, 0, 15)); in TEST() 82 ASSERT_FALSE(ParseInt("-12", &i, 0, 15)); in TEST() 85 ASSERT_FALSE(ParseInt("1 in TEST() [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | string_helpers.h | 73 bool ParseInt(const char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) in ParseInt() function 104 bool ParseInt(const std::string &str, T *num, T min = std::numeric_limits<T>::min(), in ParseInt() function 107 return ParseInt(str.c_str(), num, min, max); in ParseInt()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | string_helpers.h | 73 bool ParseInt(const char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) in ParseInt() function 104 bool ParseInt(const std::string &str, T *num, T min = std::numeric_limits<T>::min(), in ParseInt() function 107 return ParseInt(str.c_str(), num, min, max); in ParseInt()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/ |
H A D | numeric_id.h | 45 if (!helpers::string::ParseInt(*property, &value, INTMAX_C(0)) || value < 0 || in ParseNumericId()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_number.h | 48 V("parseInt", ParseInt, 2, NumberParseInt) /* Number.parseInt ( string, radix ) */ 105 static JSTaggedValue ParseInt(EcmaRuntimeCallInfo *argv);
|
H A D | builtins_number.cpp | 179 JSTaggedValue BuiltinsNumber::ParseInt(EcmaRuntimeCallInfo *argv) in ParseInt() function in panda::ecmascript::builtins::BuiltinsNumber 182 BUILTINS_API_TRACE(argv->GetThread(), Number, ParseInt); in ParseInt()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
H A D | runtime_stub_list.h | 460 V(ParseInt) \
|
H A D | runtime_stubs.cpp | 3845 DEF_RUNTIME_STUBS(ParseInt) in DEF_RUNTIME_STUBS() 3847 RUNTIME_STUBS_HEADER(ParseInt); in DEF_RUNTIME_STUBS()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_number_stub_builder.cpp | 53 void BuiltinsNumberStubBuilder::ParseInt(Variable *result, Label *exit, Label *slowPath)
in ParseInt() function in panda::ecmascript::kungfu::BuiltinsNumberStubBuilder
|
H A D | builtins_call_signature.h | 153 V(ParseInt, Number, Undefined()) \
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_number_test.cpp | 455 JSTaggedValue result = BuiltinsNumber::ParseInt(ecmaRuntimeCallInfo); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | runtime_call_id.h | 626 V(Number, ParseInt) \
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
H A D | snapshot_processor.cpp | 216 reinterpret_cast<uintptr_t>(Number::ParseInt),
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | typed_native_inline_lowering.cpp | 1995 result = builder_.CallRuntime(glue, RTSTUB_ID(ParseInt), Gate::InvalidGateRef, { msg, arg2 }, gate); in LowerNumberParseInt()
|