aboutsummaryrefslogtreecommitdiff
path: root/libbutl/regex.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/regex.mxx')
-rw-r--r--libbutl/regex.mxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/libbutl/regex.mxx b/libbutl/regex.mxx
index b5490b1..b1ba1b9 100644
--- a/libbutl/regex.mxx
+++ b/libbutl/regex.mxx
@@ -95,6 +95,20 @@ LIBBUTL_MODEXPORT namespace butl
const std::basic_regex<C>&,
const std::basic_string<C>& fmt);
+ // As above but using match_results.
+ //
+ template <typename C>
+ std::basic_string<C>
+ regex_replace_match_results (
+ const std::match_results<typename std::basic_string<C>::const_iterator>&,
+ const std::basic_string<C>& fmt);
+
+ template <typename C>
+ std::basic_string<C>
+ regex_replace_match_results (
+ const std::match_results<typename std::basic_string<C>::const_iterator>&,
+ const C* fmt, std::size_t fmt_n);
+
// Parse the '/<regex>/<format>/' replacement string into the regex/format
// pair. Other character can be used as a delimiter instead of '/'. Throw
// std::invalid_argument or std::regex_error on parsing error.