From f94a2a2c8ead4895c9499ce7d768f7e153efccdf Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 19 Jun 2018 15:32:31 +0300 Subject: Adapt to renaming regex_replace_ex() to regex_replace_search() --- build2/test/script/builtin.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'build2/test') 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). -- cgit v1.1