Home
last modified time | relevance | path

Searched refs:cstr (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/dfx/hprof/
H A Dstring_hashmap.cpp21 CString *StringHashMap::FindOrInsertString(const CString *cstr) in FindOrInsertString() argument
23 StringKey key = GenerateStringKey(cstr); in FindOrInsertString()
30 vm_->GetNativeAreaAllocator())->New<CString>(cstr->c_str()); in FindOrInsertString()
38 StringId StringHashMap::GetStringId(const CString *cstr) const in GetStringId()
40 auto it = indexMap_.find(GenerateStringKey(cstr)); in GetStringId()
64 CString *cstr = const_cast<CString *>(&cstrArg); in InsertStrAndGetStringId() local
65 StringKey key = GenerateStringKey(cstr); in InsertStrAndGetStringId()
72 vm_->GetNativeAreaAllocator())->New<CString>(cstr->c_str()); in InsertStrAndGetStringId()
80 StringKey StringHashMap::GenerateStringKey(const CString *cstr) const in GenerateStringKey()
82 return std::hash<CString>{} (*cstr); in GenerateStringKey()
85 GetString(const CString &cstr) GetString() argument
[all...]
H A Dstring_hashmap.h44 StringId GetStringId(const CString *cstr) const;
66 CString *GetString(const CString &cstr);
69 StringKey GenerateStringKey(const CString *cstr) const;
70 CString *FindOrInsertString(const CString *cstr);
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_date_time_format_second_test.cpp223 auto cstr = EcmaStringAccessor(resultStr).ToCString(); in HWTEST_F_L0() local
225 if (cstr.find("GMT") != std::string::npos) { in HWTEST_F_L0()
226 EXPECT_STREQ("10/08/22, 12:00:00 AM GMT", cstr.c_str()); in HWTEST_F_L0()
228 if (cstr.find("UTC") != std::string::npos) { in HWTEST_F_L0()
229 EXPECT_STREQ("10/08/22, 12:00:00 AM UTC", cstr.c_str()); in HWTEST_F_L0()
233 if (cstr.find("CST") != std::string::npos) { in HWTEST_F_L0()
234 EXPECT_STREQ("10/08/22, 08:00:00 AM CST", cstr.c_str()); in HWTEST_F_L0()
236 if (cstr.find("GMT+8") != std::string::npos) { in HWTEST_F_L0()
237 EXPECT_STREQ("10/08/22, 08:00:00 AM GMT+8", cstr.c_str()); in HWTEST_F_L0()
241 if (cstr in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/bridges/lib/
H A DEtsNapiTests.cpp26 const char *cstr = env->GetStringUTFChars(estr, nullptr); in GetString() local
27 if (cstr == nullptr) { in GetString()
31 std::string result(cstr); in GetString()
32 env->ReleaseStringUTFChars(estr, cstr); in GetString()

Completed in 6 milliseconds