Home
last modified time | relevance | path

Searched refs:replaceStr (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/update/update_app/common/src/main/ets/util/
H A DLogUtils.ts91 let replaceStr: string = isHttps ? 'https://' : 'http://';
94 let startIndex: number = tempResult.indexOf(replaceStr);
96 result += tempResult.substring(0, startIndex) + replaceStr + '****';
97 tempResult = tempResult.substring(startIndex + replaceStr.length);
100 startIndex = tempResult.indexOf(replaceStr);
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp246 …::string &placeHolderType, int32_t precision, const ResConfigImpl &config, std::string &replaceStr) in GetReplaceStr() argument
257 replaceStr = paramValue; in GetReplaceStr()
270 replaceStr = paramValue.substr(0, posOfDecimalPoint); in GetReplaceStr()
271 return LocalizeNumber(replaceStr, config); in GetReplaceStr()
275 replaceStr = paramValue; in GetReplaceStr()
276 return LocalizeNumber(replaceStr, config, precision); in GetReplaceStr()
344 std::string replaceStr; in ReplacePlaceholderWithParams() local
347 … if (!GetReplaceStr(jsParams[paramIndex], placeholderType, precision, resConfig, replaceStr)) { in ReplacePlaceholderWithParams()
350 … inputOutputValue.replace(prefixLength, matches[MATCHE_INDEX_WHOLE_STRING].length(), replaceStr); in ReplacePlaceholderWithParams()
353 start = inputOutputValue.begin() + prefixLength + replaceStr.length(); in ReplacePlaceholderWithParams()
/ohos5.0/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/
H A Drules_engine.cpp127 std::string replaceStr = "[" + valueStr + "]"; in InitRules() local
129 rulesValue = StrReplaceAll(rulesValue, replaceStr, targetStr); in InitRules()
211 std::string replaceStr; in InitSubRules() local
212 text.toUTF8String(replaceStr); in InitSubRules()
213 rulesValue = StrReplaceAll(rulesValue, replaceStr, targetStr); in InitSubRules()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_nb_schema_test.cpp1047 bool PutAfterReplace(string &operateStr, const string findStr, const vector<string> replaceStr, in PutAfterReplace() argument
1068 for (const auto &iter : replaceStr) { in PutAfterReplace()
1299 vector<string> replaceStr = {""}; variable
1300 PutAfterReplace(VALUE_MATCH_1, findStr, replaceStr, delegate);
1302 PutAfterReplace(VALUE_MATCH_2, findStr1, replaceStr, delegate);