diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:26:55 -0400 |
| commit | 5d6fa135b1eadbceac04e5456fabb7e53feedc10 (patch) | |
| tree | 4d84f88a0a23446f30740e756b6052b1674355ae /builtins/text.h | |
| parent | 9d2e9c02fe7eab797bc6131a5ba1129771a9f3a2 (diff) | |
Add Text:find_all()
Diffstat (limited to 'builtins/text.h')
| -rw-r--r-- | builtins/text.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/builtins/text.h b/builtins/text.h index 9f187a37..20ea9a25 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -12,11 +12,6 @@ #include "types.h" #include "where.h" -typedef struct { - enum { FIND_FAILURE, FIND_SUCCESS } status; - int32_t index; -} find_result_t; - int printf_text(FILE *stream, const struct printf_info *info, const void *const args[]); int printf_text_size(const struct printf_info *info, size_t n, int argtypes[n], int sizes[n]); @@ -38,6 +33,7 @@ Text_t Text$quoted(Text_t str, bool colorize); Text_t Text$replace(Text_t str, Text_t pat, Text_t replacement); array_t Text$split(Text_t text, Text_t pattern); Int_t Text$find(Text_t text, Text_t pattern, Int_t i, int64_t *match_length); +array_t Text$find_all(Text_t text, Text_t pattern); bool Text$has(Text_t text, Text_t pattern); const char *Text$as_c_string(Text_t text); public Text_t Text$format(const char *fmt, ...); |
