Home
last modified time | relevance | path

Searched refs:Replace (Results 1 - 25 of 126) sorted by relevance

123456

/foundation/ability/idl_tool/test/unittest/util_string_test/
H A Dutil_string_test.cpp159 * @tc.desc: Verify the Replace function.
168 EXPECT_STREQ(name.Replace('.', '.'), name); in HWTEST_F()
169 EXPECT_STREQ(String("n.a.m.e").Replace('.', '|'), String("n|a|m|e")); in HWTEST_F()
170 EXPECT_STREQ(String().Replace('.', '|'), String()); in HWTEST_F()
175 * @tc.desc: Verify the Replace function.
184 EXPECT_STREQ(name.Replace(nullptr, "replacemenet"), name); in HWTEST_F()
185 EXPECT_STREQ(name.Replace("", "replacemenet"), name); in HWTEST_F()
186 EXPECT_STREQ(name.Replace("target", nullptr), name); in HWTEST_F()
187 EXPECT_STREQ(name.Replace("..", "//"), String("n//a//m//e")); in HWTEST_F()
192 * @tc.desc: Verify the Replace functio
[all...]
/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/
H A Deffect_json_helper.h85 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, EffectJsonPtr &json);
86 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, int32_t value);
87 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, uint32_t value);
88 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, float value);
89 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, double value);
90 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, bool value);
91 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, const std::string &value);
92 IMAGE_EFFECT_EXPORT bool Replace(const std::string &key, const char *value);
98 bool Replace(const std::string &key, Json *json, bool isAllowDelete = true);
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/
H A Drouter_module.cpp28 JSI::SetModuleAPI(exports, "replace", RouterModule::Replace); in InitRouterModule()
29 JSI::SetModuleAPI(exports, "replaceUrl", RouterModule::Replace); in InitRouterModule()
32 JSIValue RouterModule::Replace(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in Replace() function in OHOS::ACELite::RouterModule
35 HILOG_ERROR(HILOG_MODULE_ACE, "Replace args invalid, args num(%{public}d).", argsNum); in Replace()
52 jerry_value_t replaceResult = router->Replace(object); in Replace()
H A Drouter_module.h32 static JSIValue Replace(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum);
/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Deffect_json_helper.cpp382 bool EffectJson::Replace(const std::string &key, Json *json, bool jsonObject) in Replace() function in OHOS::Media::Effect::EffectJson
392 bool EffectJson::Replace(const std::string &key, EffectJsonPtr &json) in Replace() function in OHOS::Media::Effect::EffectJson
402 return Replace(key, jsonObject, isAllowDelete); in Replace()
405 bool EffectJson::Replace(const std::string &key, int32_t value) in Replace() function in OHOS::Media::Effect::EffectJson
407 return Replace(key, static_cast<double>(value)); in Replace()
410 bool EffectJson::Replace(const std::string &key, uint32_t value) in Replace() function in OHOS::Media::Effect::EffectJson
412 return Replace(key, static_cast<double>(value)); in Replace()
415 bool EffectJson::Replace(const std::string &key, float value) in Replace() function in OHOS::Media::Effect::EffectJson
417 return Replace(key, static_cast<double>(value)); in Replace()
420 bool EffectJson::Replace(cons function in OHOS::Media::Effect::EffectJson
426 bool EffectJson::Replace(const std::string &key, bool value) Replace() function in OHOS::Media::Effect::EffectJson
432 bool EffectJson::Replace(const std::string &key, const std::string &value) Replace() function in OHOS::Media::Effect::EffectJson
438 bool EffectJson::Replace(const std::string &key, const char *value) Replace() function in OHOS::Media::Effect::EffectJson
[all...]
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dstring_helper.h37 static std::string Replace(const std::string &value, char oldChar, char newChar);
39 static std::string Replace(const std::string &value, const std::string &oldstr, const std::string &newstr);
41 static std::string Replace(
44 static std::string Replace(const std::string &value, size_t position, size_t len, const std::string &newStr);
H A Dstring_helper.cpp82 std::string StringHelper::Replace(const std::string &value, char oldChar, char newChar) in Replace() function in OHOS::Idl::StringHelper
98 std::string StringHelper::Replace(const std::string &value, const std::string &oldstr, const std::string &newstr) in Replace() function in OHOS::Idl::StringHelper
109 std::string StringHelper::Replace( in Replace() function in OHOS::Idl::StringHelper
118 return prefix + Replace(suffix, substr, newstr); in Replace()
121 std::string StringHelper::Replace(const std::string &value, size_t position, size_t len, const std::string &newStr) in Replace() function in OHOS::Idl::StringHelper
/foundation/arkui/ace_engine/test/unittest/base/
H A Djson_util_test.cpp553 * @tc.desc: Check json util function Replace(const char* key, double value) for nullptr key
569 bool ret = jsonValue->Replace(key, value); in HWTEST_F()
577 bool ret3 = jsonValue->Replace(key, value); in HWTEST_F()
588 bool ret4 = jsonValue->Replace(key, value); in HWTEST_F()
594 * @tc.desc: Check json util function Replace(const char* key, bool value) for nullptr key
609 bool ret = jsonValue->Replace(key, value); in HWTEST_F()
617 bool ret3 = jsonValue->Replace(key, value); in HWTEST_F()
625 bool ret4 = jsonValue->Replace(key, value); in HWTEST_F()
631 * @tc.desc: Check json util function Replace(const char* key, const char* value) for nullptr key
646 bool ret = jsonValue->Replace(ke in HWTEST_F()
[all...]
/foundation/ability/idl_tool/util/
H A Dstring.h95 String Replace(char oldChar, char newChar) const;
97 String Replace(const char* target, const char* replacement) const;
99 String Replace(const String& target, const String& replacement) const;
/foundation/arkui/ace_engine/frameworks/base/json/
H A Djson_util.h105 bool Replace(const char* key, const char* value);
106 bool Replace(const char* key, int32_t value);
107 bool Replace(const char* key, const std::unique_ptr<JsonValue>& value);
108 bool Replace(const char* key, bool value);
109 bool Replace(const char* key, double value);
H A Djson_util.cpp408 bool JsonValue::Replace(const char* key, double value) in Replace() function in OHOS::Ace::JsonValue
456 bool JsonValue::Replace(const char* key, bool value) in Replace() function in OHOS::Ace::JsonValue
473 bool JsonValue::Replace(const char* key, const char* value) in Replace() function in OHOS::Ace::JsonValue
490 bool JsonValue::Replace(const char* key, int32_t value) in Replace() function in OHOS::Ace::JsonValue
507 bool JsonValue::Replace(const char* key, const std::unique_ptr<JsonValue>& value) in Replace() function in OHOS::Ace::JsonValue
/foundation/multimedia/image_effect/test/unittest/
H A DTestJsonHelper.cpp135 ASSERT_TRUE(imageEffect->Replace(FILTERS, replaceFilters)); in HWTEST_F()
289 ASSERT_TRUE(values->Replace(FLOAT_TEST, floatValue)); in HWTEST_F()
291 ASSERT_TRUE(values->Replace(INT_TEST, intValue)); in HWTEST_F()
293 ASSERT_TRUE(values->Replace(UINT_TEST, uintValue)); in HWTEST_F()
295 ASSERT_TRUE(values->Replace(DOUBLE_TEST, doubleValue)); in HWTEST_F()
297 ASSERT_TRUE(values->Replace(BOOL_TEST, boolValue)); in HWTEST_F()
299 ASSERT_TRUE(values->Replace(STRING_TEST, strValue)); in HWTEST_F()
310 ASSERT_TRUE(values->Replace(STRING_TEST, strValue1Ptr)); in HWTEST_F()
313 ASSERT_FALSE(values->Replace(std::string(STRING_TEST), (char *)nullptr)); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/stage/
H A Dstage_element.h39 virtual void Replace(const RefPtr<Component>& newComponent);
40 void Replace(const RefPtr<Component>& newComponent, const std::function<void()>& listener);
123 void Replace(const RefPtr<Component>& newComponent) override;
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/test/unittest/common/
H A Drouter_module_tdd_test.cpp105 JSValue replaceResult = router.Replace(routerParam, false); in HWTEST_F()
128 JSValue replaceResult = router.Replace(routerParam, false); in HWTEST_F()
154 JSValue replaceResult = router.Replace(routerParam, false); in HWTEST_F()
413 JSIValue callResult = RouterModule::Replace(thisVal, args, argsNum); in HWTEST_F()
435 JSIValue result = RouterModule::Replace(context, nullptr, argsNumber); in HWTEST_F()
458 JSIValue result = RouterModule::Replace(context, nullptr, argsNumber); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_container.h189 * @brief Replace a child item with another one. The function will fail if child is not found.
197 bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith) in Replace() function in IContainer
199 return Replace(child, replaceWith, false); in Replace()
202 * @brief Replace a child item with another one.
214 virtual bool Replace(const IObject::Ptr& child, const IObject::Ptr& replaceWith, bool addAlways) = 0;
308 * @brief Typed helper for IContainer::Replace
311 bool Replace(const T1& child, const T2& replaceWith, bool addAlways = false) in Replace() function in IContainer
313 return Replace(interface_pointer_cast<IObject>(child), interface_pointer_cast<IObject>(replaceWith), addAlways); in Replace()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfContainerTest.cpp353 * @tc.desc: test Replace function
357 HWTEST_P(ContainerCommonTest, Replace, TestSize.Level1) in HWTEST_P()
367 EXPECT_TRUE(container_->Replace(replace, replaceWith, false)); in HWTEST_P()
396 EXPECT_TRUE(container_->Replace(replace, replaceWith)); in HWTEST_P()
401 EXPECT_FALSE(container_->Replace(notThere, notThere)); in HWTEST_P()
409 EXPECT_TRUE(container_->Replace(notThere, notThere, true)); in HWTEST_P()
432 EXPECT_FALSE(container_->Replace({}, {}, false)); in HWTEST_P()
434 EXPECT_FALSE(container_->Replace({}, {}, true)); in HWTEST_P()
439 EXPECT_FALSE(container_->Replace({}, replaceWith, false)); in HWTEST_P()
444 EXPECT_TRUE(container_->Replace({}, replaceWit in HWTEST_P()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_page_router_abstract.cpp75 void CJPageRouterAbstract::Replace(const RouterPageInfo& target, const std::string& params, RouterMode mode) in Replace() function in OHOS::Ace::CJPageRouterAbstract
87 router->Replace(target, params, mode); in Replace()
89 "CJPageRouterAbstract::Replace"); in Replace()
/foundation/ability/idl_tool/ast/
H A Dast_sequenceable_type.cpp34 return "L" + fullName.Replace('.', '/') + ";"; in GetSignature()
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/
H A Djs_router.h33 jerry_value_t Replace(jerry_value_t object, bool async = true);
/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dflat_container.h28 bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool addAlways) override;
H A Dcontainer.h28 bool Replace(const META_NS::IObject::Ptr& child, const META_NS::IObject::Ptr& replaceWith, bool addAlways) override;
/foundation/ability/idl_tool/idl_tool_2/ast/
H A Dast_sequenceable_type.cpp33 return "L" + StringHelper::Replace(fullName, '.', '/') + ";"; in GetSignature()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_insert_test.cpp297 int ret = store->Replace(id, "test", UTUtils::SetRowData(UTUtils::g_rowData[0])); in HWTEST_F()
358 ret = store->Replace(id, "test", values); in HWTEST_F()
399 * @tc.desc: test RdbStore Replace
413 int ret = store->Replace(id, "", values); // empty table name in HWTEST_F()
416 ret = store->Replace(id, "wrongTable", values); // no such table in HWTEST_F()
422 * @tc.desc: test RdbStore Replace
431 int ret = store->Replace(id, "test", emptyBucket); in HWTEST_F()
440 ret = store->Replace(id, "test", values); in HWTEST_F()
455 int ret = store->Replace(id, "test", UTUtils::SetRowData(UTUtils::g_rowData[0])); in HWTEST_F()
513 ret = store->Replace(i in HWTEST_F()
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dsqlite_sql_builder.cpp218 SqliteUtils::Replace(field, SqliteUtils::REP, ""); in BuildCursorQueryString()
219 SqliteUtils::Replace(sql, table + "." + DistributedRdb::Field::SHARING_RESOURCE_FIELD, in BuildCursorQueryString()
235 SqliteUtils::Replace(whereClause, SqliteUtils::REP, logName + "."); in BuildCursorQueryString()
239 SqliteUtils::Replace(order, SqliteUtils::REP, logName + "."); in BuildCursorQueryString()
276 SqliteUtils::Replace(whereClause, SqliteUtils::REP, logName + "."); in BuildLockRowQueryString()
281 SqliteUtils::Replace(order, SqliteUtils::REP, logName + "."); in BuildLockRowQueryString()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_picker_pattern.cpp630 json->Replace("year", static_cast<int32_t>(newYear)); in HandleYearKeyWaitingEvent()
637 json->Replace("year", static_cast<int32_t>(newYear)); in HandleYearKeyWaitingEvent()
640 json->Replace("day", static_cast<int32_t>(maxDay)); in HandleYearKeyWaitingEvent()
678 json->Replace("year", static_cast<int32_t>(number)); in HandleYearKeyEvent()
716 json->Replace("month", static_cast<int32_t>(newMonth)); in HandleMonthKeyEvent()
719 json->Replace("day", static_cast<int32_t>(maxDay)); in HandleMonthKeyEvent()
731 json->Replace("month", static_cast<int32_t>(number)); in HandleMonthKeyEvent()
769 json->Replace("day", static_cast<int32_t>(newDay)); in HandleDayKeyEvent()
781 json->Replace("day", static_cast<int32_t>(number)); in HandleDayKeyEvent()
850 json->Replace("yea in HandleTaskCallback()
[all...]

Completed in 14 milliseconds

123456