| 2618 | } |
| 2619 | |
| 2620 | void 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__)) |
no outgoing calls
no test coverage detected