MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / StringReplace

Function StringReplace

src/commons/util/util.cpp:930–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void StringReplace(string& strBase, string strSrc, string strDes) {
931 string::size_type pos = 0;
932 string::size_type srcLen = strSrc.size();
933 string::size_type desLen = strDes.size();
934 pos = strBase.find(strSrc, pos);
935 while ((pos != string::npos)) {
936 strBase.replace(pos, srcLen, strDes);
937 pos = strBase.find(strSrc, (pos + desLen));
938 }
939}
940
941#ifdef WIN32
942boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) {

Callers 1

AppInitFunction · 0.85

Calls 2

sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected