Home
last modified time | relevance | path

Searched refs:newStr (Results 1 – 4 of 4) 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/global_resource_tool/src/
Dresource_util.cpp263 void ResourceUtil::StringReplace(string &sourceStr, const string &oldStr, const string &newStr) in StringReplace() argument
267 string::size_type newSize = newStr.size(); in StringReplace()
269 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);