diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 13:53:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 13:53:22 -0400 |
| commit | 985011aed89706e9a4b06e6c6f3239d53ac8e6e8 (patch) | |
| tree | c4c8203628b4b12bb8f089e23e0503a6d710171d | |
| parent | be2673ef2b102c49c4db3e0079b9269b787d821f (diff) | |
Update header
| -rw-r--r-- | stdlib/patterns.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/patterns.h b/stdlib/patterns.h index bea58453..3c281754 100644 --- a/stdlib/patterns.h +++ b/stdlib/patterns.h @@ -8,6 +8,7 @@ #include "datatypes.h" #include "integers.h" +#include "optionals.h" #include "types.h" #define Pattern(text) ((Pattern_t)Text(text)) @@ -21,7 +22,7 @@ Text_t Text$trim(Text_t text, Pattern_t pattern, bool trim_left, bool trim_right OptionalInt_t Text$find(Text_t text, Pattern_t pattern, Int_t i); Array_t Text$find_all(Text_t text, Pattern_t pattern); PUREFUNC bool Text$has(Text_t text, Pattern_t pattern); -Array_t Text$matches(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); #define Pattern$hash Text$hash |
