Replace the 'search' substring by the 'replace' string in 'str'.
| 269 | |
| 270 | // Replace the 'search' substring by the 'replace' string in 'str'. |
| 271 | inline std::string Replace(const std::string & subject, const std::string & search, const std::string & replace) |
| 272 | { |
| 273 | std::string str{subject}; |
| 274 | ReplaceInPlace(str, search, replace); |
| 275 | return str; |
| 276 | } |
| 277 | |
| 278 | // Check if the 'entry' is in the 'list' using a case insensitive comparison. |
| 279 | inline bool Contain(const StringVec & list, const std::string & entry) |