diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-04-12 19:16:55 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-04-12 19:16:55 +0200 |
| commit | 385241d2c07b6e97c7bd25b4d31a9845a1c74154 (patch) | |
| tree | 5ee85dd079fb374f9e318675370d74dfda96c84e /src/string.cc | |
| parent | b6d21514e4217ee811682338e4ccf4fab5477cd6 (diff) | |
remove String::replace, use boost::regex_replace directly
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/string.cc b/src/string.cc index 06a20c43..cecf0279 100644 --- a/src/string.cc +++ b/src/string.cc @@ -50,13 +50,6 @@ std::vector<String> split(const String& str, char separator) return res; } -String String::replace(const String& expression, - const String& replacement) const -{ - boost::regex re(expression); - return String(boost::regex_replace(*this, re, replacement)); -} - String option_to_string(const Regex& re) { return String{re.str()}; |
