aboutsummaryrefslogtreecommitdiff
path: root/build2/test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-06-19 15:32:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-06-19 15:32:31 +0300
commitf94a2a2c8ead4895c9499ce7d768f7e153efccdf (patch)
tree831f0023313491362983c443e98e752ffe286ca5 /build2/test
parent632c344c5f8bea0114daa5104223723316d456dd (diff)
Adapt to renaming regex_replace_ex() to regex_replace_search()
Diffstat (limited to 'build2/test')
-rw-r--r--build2/test/script/builtin.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx
index d52aee4..e912079 100644
--- a/build2/test/script/builtin.cxx
+++ b/build2/test/script/builtin.cxx
@@ -1337,12 +1337,13 @@ namespace build2
string s;
while (getline (cin, s))
{
- auto r (regex_replace_ex (s,
- re,
- subst->replacement,
- subst->global
- ? regex_constants::format_default
- : regex_constants::format_first_only));
+ auto r (regex_replace_search (
+ s,
+ re,
+ subst->replacement,
+ subst->global
+ ? regex_constants::format_default
+ : regex_constants::format_first_only));
// Add newline regardless whether the source line is newline-
// terminated or not (in accordance with POSIX).