Home
last modified time | relevance | path

Searched refs:newStr (Results 1 - 25 of 30) sorted by relevance

12

/kernel/liteos_a/apps/shell/src/
H A Dshcmdparse.c42 char *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (char *)malloc(strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()
/kernel/liteos_a/shell/full/src/base/
H A Dshcmdparse.c42 CHAR *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()
/kernel/liteos_m/components/shell/src/base/
H A Dshcmdparse.c42 CHAR *newStr = NULL; in OsCmdParseStrdup() local
44 newStr = (CHAR *)LOS_MemAlloc(m_aucSysMem0, strlen(str) + 1); in OsCmdParseStrdup()
45 if (newStr == NULL) { in OsCmdParseStrdup()
49 tempStr = newStr; in OsCmdParseStrdup()
54 *newStr = *str; in OsCmdParseStrdup()
55 newStr++; in OsCmdParseStrdup()
57 *newStr = '\0'; in OsCmdParseStrdup()
/third_party/node/deps/npm/node_modules/diff/lib/diff/
H A Dline.js72 function diffLines(oldStr, newStr, callback) {
73 return lineDiff.diff(oldStr, newStr, callback);
76 function diffTrimmedLines(oldStr, newStr, callback) {
92 return lineDiff.diff(oldStr, newStr, options);
H A Dcss.js38 function diffCss(oldStr, newStr, callback) {
39 return cssDiff.diff(oldStr, newStr, callback);
H A Dcharacter.js34 function diffChars(oldStr, newStr, options) {
35 return characterDiff.diff(oldStr, newStr, options);
H A Dsentence.js38 function diffSentences(oldStr, newStr, callback) {
39 return sentenceDiff.diff(oldStr, newStr, callback);
/third_party/node/deps/npm/node_modules/diff/lib/patch/
H A Dcreate.js32 function structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
53 (oldStr, newStr, options);
192 var newEOFNewline = /\n$/.test(newStr);
269 function createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {
270 return formatPatch(structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options));
273 function createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {
274 return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
H A Dfile_format_dump_filter.cpp69 std::string newStr; in FilterControlChar() local
90 newStr.append(1, c); in FilterControlChar()
93 str = newStr; in FilterControlChar()
/third_party/vk-gl-cts/framework/delibs/depool/
H A DdeMemPool.c553 char* newStr = (char*)deMemPool_alloc(pool, len+1); in deMemPool_strDup() local
554 if (newStr) in deMemPool_strDup()
555 memcpy(newStr, str, len+1); in deMemPool_strDup()
556 return newStr; in deMemPool_strDup()
569 char* newStr = (char*)deMemPool_alloc(pool, len + 1); in deMemPool_strnDup() local
573 if (newStr) in deMemPool_strnDup()
575 memcpy(newStr, str, len); in deMemPool_strnDup()
576 newStr[len] = 0; in deMemPool_strnDup()
578 return newStr; in deMemPool_strnDup()
/base/update/updater/test/unittest/utils/
H A Dutils_unittest.cpp51 string newStr = Utils::ConvertSha256Hex(a, 1); in HWTEST_F() local
52 EXPECT_STREQ(newStr.c_str(), "01"); in HWTEST_F()
58 vector<string> newStr = Utils::SplitString(str, "\n"); in HWTEST_F() local
59 EXPECT_EQ(newStr[0], "aaa"); in HWTEST_F()
60 EXPECT_EQ(newStr[1], "bbb"); in HWTEST_F()
/test/xts/acts/commonlibrary/ets_utils/worker_lib_standard/entry/src/ohosTest/ets/workers/
H A Dworker_021.js22 let newStr = str.replace(data, "$2, $1!");
23 parentPort.postMessage(newStr);
/test/xts/acts/commonlibrary/ets_utils/threadWorker_lib_standard/entry/src/ohosTest/ets/workers/
H A Dnewworker_021.js22 let newStr = str.replace(data, "$2, $1!");
23 workerPort.postMessage(newStr);
/base/hiviewdfx/hiview/base/
H A Ddefault_logger.cpp22 inline void StringReplace(std::string& sourceStr, const std::string& subStr, const std::string& newStr) in StringReplace() argument
26 sourceStr.replace(pos, subStr.length(), newStr); in StringReplace()
/base/security/device_auth/common_lib/impl/src/
H A Dstring_util.c118 int32_t DeepCopyString(const char *str, char **newStr) in DeepCopyString() argument
120 if (str == NULL || newStr == NULL) { in DeepCopyString()
132 *newStr = val; in DeepCopyString()
/third_party/selinux/libsepol/cil/test/unit/
H A DCuTest.c39 char* newStr = (char*) malloc( sizeof(char) * (size) ); in CuStrAlloc() local
40 return newStr; in CuStrAlloc()
46 char* newStr = CuStrAlloc(len + 1); in CuStrCopy() local
47 strcpy(newStr, old); in CuStrCopy()
48 return newStr; in CuStrCopy()
/third_party/node/deps/npm/node_modules/diff/lib/
H A Dindex.es6.js308 function diffChars(oldStr, newStr, options) {
309 return characterDiff.diff(oldStr, newStr, options);
374 function diffWords(oldStr, newStr, options) {
378 return wordDiff.diff(oldStr, newStr, options);
380 function diffWordsWithSpace(oldStr, newStr, options) {
381 return wordDiff.diff(oldStr, newStr, options);
417 function diffLines(oldStr, newStr, callback) {
418 return lineDiff.diff(oldStr, newStr, callback);
420 function diffTrimmedLines(oldStr, newStr, callback) {
424 return lineDiff.diff(oldStr, newStr, option
[all...]
/base/telephony/telephony_data/common/src/
H A Drdb_base_helper.cpp171 void RdbBaseHelper::ReplaceAllStr(std::string &path, const std::string &oldStr, const std::string &newStr) in ReplaceAllStr() argument
173 path = std::regex_replace(path, std::regex(oldStr), newStr); in ReplaceAllStr()
/base/security/device_auth/common_lib/interfaces/
H A Dstring_util.h74 * @param newStr: the new string. Need free.
77 int32_t DeepCopyString(const char *str, char **newStr);
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/
H A Dheader.cpp388 std::string newStr; variable
391 newStr += '\\';
392 newStr += c;
394 newStr += c;
397 return newStr;
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/
H A Dheader.cpp388 std::string newStr; variable
391 newStr += '\\';
392 newStr += c;
394 newStr += c;
397 return newStr;
/third_party/spirv-headers/tools/buildHeaders/
H A Dheader.cpp390 std::string newStr; variable
393 newStr += '\\';
394 newStr += c;
396 newStr += c;
399 return newStr;
/base/telephony/telephony_data/common/include/
H A Drdb_base_helper.h63 void ReplaceAllStr(std::string &path, const std::string &oldStr, const std::string &newStr);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DUTF16.java2003 * in source with newStr. If the string oldStr does not occur in the UTF16 format Unicode string
2006 * except that every occurrence of oldStr is replaced by an occurrence of newStr.
2025 * @param newStr The new string to replace oldStr
2026 * @return new String derived from source by replacing every occurrence of oldStr with newStr.
2030 public static String replace(String source, String oldStr, String newStr) { in replace() argument
2036 int newStrSize = newStr.length(); in replace()
2042 result.replace(resultIndex, endResultIndex, newStr); in replace()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DUTF16.java1933 * in source with newStr. If the string oldStr does not occur in the UTF16 format Unicode string
1936 * except that every occurrence of oldStr is replaced by an occurrence of newStr.
1955 * @param newStr The new string to replace oldStr
1956 * @return new String derived from source by replacing every occurrence of oldStr with newStr.
1959 public static String replace(String source, String oldStr, String newStr) { in replace() argument
1965 int newStrSize = newStr.length(); in replace()
1971 result.replace(resultIndex, endResultIndex, newStr); in replace()

Completed in 19 milliseconds

12