Home
last modified time | relevance | path

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

/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/
H A Dstring_helper.cpp91 …ringHelper::Replace(const std::string &value, const std::string &oldstr, const std::string &newstr) in Replace() argument
96 result.replace(pos, oldstr.size(), newstr); in Replace()
97 pos += newstr.size(); in Replace()
103 const std::string &value, size_t position, const std::string &substr, const std::string &newstr) in Replace() argument
111 return prefix + Replace(suffix, substr, newstr); in Replace()
H A Dstring_helper.h32 …td::string Replace(const std::string &value, const std::string &oldstr, const std::string &newstr);
35 … const std::string &value, size_t position, const std::string &substr, const std::string &newstr);
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/
H A Dstring_helper.cpp98 …ringHelper::Replace(const std::string &value, const std::string &oldstr, const std::string &newstr) in Replace() argument
103 result.replace(pos, oldstr.size(), newstr); in Replace()
104 pos += newstr.size(); in Replace()
110 const std::string &value, size_t position, const std::string &substr, const std::string &newstr) in Replace() argument
118 return prefix + Replace(suffix, substr, newstr); in Replace()
H A Dstring_helper.h39 …td::string Replace(const std::string &value, const std::string &oldstr, const std::string &newstr);
42 … const std::string &value, size_t position, const std::string &substr, const std::string &newstr);
/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
81 input.replace(pos, oldlen, newstr); in ReplaceSpecialSymbols()
1496 std::string newstr = ":"; in SetPath() local
1497 ReplaceSpecialSymbols(strPath, oldstr, newstr); in SetPath()
1621 std::string newstr = "%23"; in SetSearch() local
1622 ReplaceSpecialSymbols(temp, oldstr, newstr); in SetSearch()