diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-05 08:28:29 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-05 20:50:24 +0200 |
commit | fa2deae2a86417d7e0d4cd33fb933b1000d20313 (patch) | |
tree | 949c81b62fd5399d478a28dcf0701f8d52ef2d96 /src/util/string.cpp | |
parent | c367736f85ac7f63a63cbfa0bcc05a42277f04bc (diff) |
Wrap boost::replace_all
Diffstat (limited to 'src/util/string.cpp')
-rw-r--r-- | src/util/string.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/string.cpp b/src/util/string.cpp index 8ea3a1afc6..d05222e8b8 100644 --- a/src/util/string.cpp +++ b/src/util/string.cpp @@ -3,3 +3,10 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/string.h> + +#include <boost/algorithm/string/replace.hpp> + +void ReplaceAll(std::string& in_out, std::string_view search, std::string_view substitute) +{ + boost::replace_all(in_out, search, substitute); +} |