Home
last modified time | relevance | path

Searched refs:ParseInt (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
H A Dstring_helpers_test.cpp47 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 Dstring_helpers_test.cpp51 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 Dstring_helpers.h73 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 Dstring_helpers.h73 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 Dnumeric_id.h45 if (!helpers::string::ParseInt(*property, &value, INTMAX_C(0)) || value < 0 || in ParseNumericId()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_number.h48 V("parseInt", ParseInt, 2, NumberParseInt) /* Number.parseInt ( string, radix ) */
105 static JSTaggedValue ParseInt(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_number.cpp179 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 Druntime_stub_list.h460 V(ParseInt) \
H A Druntime_stubs.cpp3845 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 Dbuiltins_number_stub_builder.cpp53 void BuiltinsNumberStubBuilder::ParseInt(Variable *result, Label *exit, Label *slowPath) in ParseInt() function in panda::ecmascript::kungfu::BuiltinsNumberStubBuilder
H A Dbuiltins_call_signature.h153 V(ParseInt, Number, Undefined()) \
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_number_test.cpp455 JSTaggedValue result = BuiltinsNumber::ParseInt(ecmaRuntimeCallInfo); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
H A Druntime_call_id.h626 V(Number, ParseInt) \
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp216 reinterpret_cast<uintptr_t>(Number::ParseInt),
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtyped_native_inline_lowering.cpp1995 result = builder_.CallRuntime(glue, RTSTUB_ID(ParseInt), Gate::InvalidGateRef, { msg, arg2 }, gate); in LowerNumberParseInt()

Completed in 26 milliseconds