Home
last modified time | relevance | path

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

/developtools/profiler/device/base/include/
H A Dlogging.h120 inline void StringReplace(std::string& str, const std::string& oldStr, const std::string& newStr) in StringReplace() argument
124 str.replace(pos, oldStr.length(), newStr); in StringReplace()
125 pos += newStr.length(); in StringReplace()
/developtools/hdc/src/host/
H A Dhost_usb.cpp79 char *newStr = strdup(str); in UsbLogHandler() local
80 if (!newStr) { in UsbLogHandler()
83 char *p = strstr(newStr, "libusb:"); in UsbLogHandler()
85 p = newStr; in UsbLogHandler()
87 char *q = strrchr(newStr, '\n'); in UsbLogHandler()
92 free(newStr); in UsbLogHandler()
/developtools/smartperf_host/trace_streamer/src/rpc/
H A Dffrt_converter.cpp335 string newStr = str; in IsDigit() local
336 newStr.erase(endPos + 1); in IsDigit()
337 if (newStr.back() == '\r') { in IsDigit()
338 newStr.pop_back(); in IsDigit()
340 for (int i = 0; i < newStr.length(); i++) { in IsDigit()
341 if (!std::isdigit(newStr[i])) { in IsDigit()
/developtools/global_resource_tool/src/
H A Dresource_util.cpp271 void ResourceUtil::StringReplace(string &sourceStr, const string &oldStr, const string &newStr) in StringReplace() argument
275 string::size_type newSize = newStr.size(); in StringReplace()
277 sourceStr.replace(pos, oldSize, newStr.c_str()); in StringReplace()
/developtools/global_resource_tool/include/
H A Dresource_util.h41 * @param newStr: The new string used
43 static void StringReplace(std::string &sourceStr, const std::string &oldStr, const std::string &newStr);

Completed in 6 milliseconds