From 15370d2f54f9a6a286897715d74ffbf3bdf3e02e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jun 2021 14:29:50 +0200 Subject: Make regex_replace_match_results() part of public API --- libbutl/regex.ixx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbutl/regex.ixx') diff --git a/libbutl/regex.ixx b/libbutl/regex.ixx index 805acd1..f55cb07 100644 --- a/libbutl/regex.ixx +++ b/libbutl/regex.ixx @@ -38,4 +38,13 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. return regex_replace_parse ( s, std::basic_string::traits_type::length (s), f); } + + template + inline std::basic_string + regex_replace_match_results ( + const std::match_results::const_iterator>& m, + const std::basic_string& fmt) + { + return regex_replace_match_results (m, fmt.c_str (), fmt.size ()); + } } -- cgit v1.1