From 06e915be138b0638e30083f84cecda0eb1bfc895 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 19 Jun 2018 15:30:22 +0300 Subject: Add regex_replace_match() and rename regex_replace_ex() to regex_replace_search() --- libbutl/regex.ixx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libbutl/regex.ixx') 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 inline std::pair, bool> - regex_replace_ex (const std::basic_string& s, - const std::basic_regex& re, - const std::basic_string& fmt, - std::regex_constants::match_flag_type flags) + regex_replace_search (const std::basic_string& s, + const std::basic_regex& re, + const std::basic_string& fmt, + std::regex_constants::match_flag_type flags) { using namespace std; using it = typename basic_string::const_iterator; basic_string 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); } -- cgit v1.1