Home
last modified time | relevance | path

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

/developtools/profiler/device/base/include/
Dlogging.h124 inline void StringReplace(std::string& str, const std::string& oldStr, const std::string& newStr) in StringReplace() argument
128 str.replace(pos, oldStr.length(), newStr); in StringReplace()
129 pos += newStr.length(); in StringReplace()
/developtools/hdc/src/host/
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/
Dffrt_converter.cpp344 string newStr = str; in IsDigit() local
345 newStr.erase(endPos + 1); in IsDigit()
346 if (newStr.back() == '\r') { in IsDigit()
347 newStr.pop_back(); in IsDigit()
349 for (int i = 0; i < newStr.length(); i++) { in IsDigit()
350 if (!std::isdigit(newStr[i])) { in IsDigit()
/developtools/global_resource_tool/src/
Dresource_util.cpp262 void ResourceUtil::StringReplace(string &sourceStr, const string &oldStr, const string &newStr) in StringReplace() argument
266 string::size_type newSize = newStr.size(); in StringReplace()
268 sourceStr.replace(pos, oldSize, newStr.c_str()); in StringReplace()
/developtools/global_resource_tool/include/
Dresource_util.h43 …c void StringReplace(std::string &sourceStr, const std::string &oldStr, const std::string &newStr);