diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 15:12:54 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-16 15:12:54 -0400 |
| commit | 6d0f04375df942985292d0a6b6e487db9a09f3fa (patch) | |
| tree | cad6fbb4008240cf7280b77fa226f9518f44faac /stdlib/patterns.h | |
| parent | a9a21c40d91ea75066023854739c6a98a36c8a76 (diff) | |
Have Text:matches() return an optional array of matches
Diffstat (limited to 'stdlib/patterns.h')
| -rw-r--r-- | stdlib/patterns.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/patterns.h b/stdlib/patterns.h index 804fb286..9825cf96 100644 --- a/stdlib/patterns.h +++ b/stdlib/patterns.h @@ -21,7 +21,7 @@ Text_t Text$trim(Text_t text, Pattern_t pattern, bool trim_left, bool trim_right Int_t Text$find(Text_t text, Pattern_t pattern, Int_t i, int64_t *match_length); Array_t Text$find_all(Text_t text, Pattern_t pattern); PUREFUNC bool Text$has(Text_t text, Pattern_t pattern); -PUREFUNC bool Text$matches(Text_t text, Pattern_t pattern); +Array_t Text$matches(Text_t text, Pattern_t pattern); Text_t Text$map(Text_t text, Pattern_t pattern, Closure_t fn); #define Pattern$hash Text$hash |
