MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / myReplace

Function myReplace

src/myFunc.cpp:2620–2626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2618}
2619
2620void myReplace(std::string& str, const std::string& oldStr, const std::string& newStr) {
2621 size_t pos = 0;
2622 while((pos = str.find(oldStr, pos)) != std::string::npos) {
2623 str.replace(pos, oldStr.length(), newStr);
2624 pos += newStr.length();
2625 }
2626}
2627
2628
2629#if defined(_WIN32) || (defined(__APPLE__) && defined(__MACH__))

Callers 3

readChrNamesInBedFunction · 0.85
readFileWithGenomeInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected