Home
last modified time | relevance | path

Searched refs:oldstr (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/
H A Dstring_helper.cpp91 std::string StringHelper::Replace(const std::string &value, const std::string &oldstr, const std::s… in Replace() argument
95 while ((pos = result.find(oldstr, pos)) != std::string::npos) { in Replace()
96 result.replace(pos, oldstr.size(), newstr); in Replace()
H A Dstring_helper.h32 …static std::string Replace(const std::string &value, const std::string &oldstr, const std::string …
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/
H A Dstring_helper.cpp98 std::string StringHelper::Replace(const std::string &value, const std::string &oldstr, const std::s… in Replace() argument
102 while ((pos = result.find(oldstr, pos)) != std::string::npos) { in Replace()
103 result.replace(pos, oldstr.size(), newstr); in Replace()
H A Dstring_helper.h39 …static std::string Replace(const std::string &value, const std::string &oldstr, const std::string …
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp75 void ReplaceSpecialSymbols(std::string& input, std::string& oldstr, std::string& newstr) in ReplaceSpecialSymbols() argument
77 size_t oldlen = oldstr.size(); in ReplaceSpecialSymbols()
80 if ((pos = input.find(oldstr)) != std::string::npos) { in ReplaceSpecialSymbols()
1495 std::string oldstr = "%3A"; in SetPath() local
1497 ReplaceSpecialSymbols(strPath, oldstr, newstr); in SetPath()
1620 std::string oldstr = "#"; in SetSearch() local
1622 ReplaceSpecialSymbols(temp, oldstr, newstr); in SetSearch()