| 85 | } |
| 86 | |
| 87 | void replaceInPlace( |
| 88 | std::string& subject, const std::string& search, const std::string& replace) |
| 89 | { |
| 90 | size_t pos = 0; |
| 91 | while ((pos = subject.find(search, pos)) != std::string::npos) |
| 92 | { |
| 93 | subject.replace(pos, search.length(), replace); |
| 94 | pos += replace.length(); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | std::string replace( |
| 99 | std::string subject, const std::string& search, const std::string& replace) |
no test coverage detected