From f330f06c218a0903530cdc51c0fac245cb51ae75 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 3 Mar 2025 13:45:30 -0500 Subject: Add `recursive` argument to text:each() and text:map(), plus update docs --- stdlib/patterns.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/patterns.h') diff --git a/stdlib/patterns.h b/stdlib/patterns.h index 494c8338..53db0978 100644 --- a/stdlib/patterns.h +++ b/stdlib/patterns.h @@ -34,8 +34,8 @@ Array_t Text$find_all(Text_t text, Pattern_t pattern); Closure_t Text$by_match(Text_t text, Pattern_t pattern); PUREFUNC bool Text$has(Text_t text, Pattern_t pattern); OptionalArray_t Text$matches(Text_t text, Pattern_t pattern); -Text_t Text$map(Text_t text, Pattern_t pattern, Closure_t fn); -void Text$each(Text_t text, Pattern_t pattern, Closure_t fn); +Text_t Text$map(Text_t text, Pattern_t pattern, Closure_t fn, bool recursive); +void Text$each(Text_t text, Pattern_t pattern, Closure_t fn, bool recursive); #define Pattern$hash Text$hash #define Pattern$compare Text$compare -- cgit v1.2.3