aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-regex.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-04-01 10:23:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-04-01 10:23:37 +0200
commit221a53ed3d18217d06f7d8e0bdf9ce315ca2413c (patch)
tree389225f308a7eaba4469be80513b768839854b13 /libbuild2/functions-regex.cxx
parentd28970114e5807f57ae339764ac05384ef163379 (diff)
Add $string.replace() function
Diffstat (limited to 'libbuild2/functions-regex.cxx')
-rw-r--r--libbuild2/functions-regex.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/functions-regex.cxx b/libbuild2/functions-regex.cxx
index a7fcf55..cf3ffd0 100644
--- a/libbuild2/functions-regex.cxx
+++ b/libbuild2/functions-regex.cxx
@@ -775,6 +775,8 @@ namespace build2
// If both `format_first_only` and `format_no_copy` flags are specified
// then the result will only contain the replacement of the first match.
//
+ // See also `$string.replace()`.
+ //
f[".replace"] += [](value v, string re, string fmt, optional<names> flags)
{
return replace (move (v), re, fmt, move (flags));