From 221a53ed3d18217d06f7d8e0bdf9ce315ca2413c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 1 Apr 2024 10:23:37 +0200 Subject: Add $string.replace() function --- libbuild2/functions-regex.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbuild2/functions-regex.cxx') 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 flags) { return replace (move (v), re, fmt, move (flags)); -- cgit v1.1