Function string_replace (o2scl)¶
-
size_t o2scl::string_replace(std::string &s, const std::string &s1, const std::string &s2)¶
In string
s, replace all occurrences ofs1with strings2, and return the number of replacements.Note
If the string
s1can be found insides2, then this would lead to an infinite loop, so the error handler is called.