| 275 | |
| 276 | |
| 277 | void ReplaceString(AString & iHayStack, const AString & iNeedle, const AString & iReplaceWith) |
| 278 | { |
| 279 | size_t pos1 = iHayStack.find(iNeedle); |
| 280 | while (pos1 != AString::npos) |
| 281 | { |
| 282 | iHayStack.replace( pos1, iNeedle.size(), iReplaceWith); |
| 283 | pos1 = iHayStack.find(iNeedle, pos1); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | |
| 288 |
no test coverage detected