diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:07:08 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 23:07:08 -0400 |
| commit | 6d7e09bf1801c2fe183df17cc67017a6d3d8513b (patch) | |
| tree | 2c51df15ebab45a68ec36e9466e8e9f3813b48f6 /builtins/text.h | |
| parent | 9214e621bf7fdaec29b872a5b0e757806fa61b40 (diff) | |
Add Text:split() and use that with an empty pattern instead of Text:clusters()
Diffstat (limited to 'builtins/text.h')
| -rw-r--r-- | builtins/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/text.h b/builtins/text.h index a4697507..cca18a2c 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -60,6 +60,7 @@ Text_t Text$title(Text_t text); Text_t Text$as_text(const void *text, bool colorize, const TypeInfo *info); 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); bool Text$has(Text_t text, Text_t pattern); const char *Text$as_c_string(Text_t text); |
