Searched refs:newstr (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | string_helper.cpp | 91 …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 D | string_helper.h | 32 …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 D | string_helper.cpp | 98 …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 D | string_helper.h | 39 …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 D | js_url.cpp | 75 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()
|