aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/regex.ixx')
-rw-r--r--libbutl/regex.ixx14
1 files changed, 7 insertions, 7 deletions
diff --git a/libbutl/regex.ixx b/libbutl/regex.ixx
index 15189fb..8e3286f 100644
--- a/libbutl/regex.ixx
+++ b/libbutl/regex.ixx
@@ -6,19 +6,19 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason.
{
template <typename C>
inline std::pair<std::basic_string<C>, bool>
- regex_replace_ex (const std::basic_string<C>& s,
- const std::basic_regex<C>& re,
- const std::basic_string<C>& fmt,
- std::regex_constants::match_flag_type flags)
+ regex_replace_search (const std::basic_string<C>& s,
+ const std::basic_regex<C>& re,
+ const std::basic_string<C>& fmt,
+ std::regex_constants::match_flag_type flags)
{
using namespace std;
using it = typename basic_string<C>::const_iterator;
basic_string<C> r;
- bool match (regex_replace_ex (s, re, fmt,
- [&r] (it b, it e) {r.append (b, e);},
- flags));
+ bool match (regex_replace_search (s, re, fmt,
+ [&r] (it b, it e) {r.append (b, e);},
+ flags));
return make_pair (move (r), match);
}