1 #include <pbd/replace_all.h>
4 replace_all (std::string& str,
5 std::string const& target,
6 std::string const& replacement)
8 std::string::size_type start = str.find (target, 0);
11 while (start != std::string::npos) {
12 str.replace (start, target.size(), replacement);
13 start = str.find (target, start+replacement.size());