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.txx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libbutl/regex.txx') diff --git a/libbutl/regex.txx b/libbutl/regex.txx index aa845be..8fe5308 100644 --- a/libbutl/regex.txx +++ b/libbutl/regex.txx @@ -3,13 +3,11 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. { - // Replace the regex match results using the format string. - // template std::basic_string regex_replace_match_results ( const std::match_results::const_iterator>& m, - const std::basic_string& fmt) + const C* fmt, std::size_t n) { using namespace std; @@ -60,7 +58,6 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. } }; - size_t n (fmt.size ()); for (size_t i (0); i < n; ++i) { C c (fmt[i]); -- cgit v1.1