diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-06 00:03:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-06 00:03:28 -0400 |
| commit | 44892df4c5686b292a058ca19eaba1e852fe42f3 (patch) | |
| tree | b01b46ef7e9496e1971616e3b55e124dfd217cbb /builtins/text.h | |
| parent | 1000423d2b351f1f5edbb3c9a08898883ba47f3e (diff) | |
Add Text.trim()
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 eff01dbe..cb8f08ba 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -36,6 +36,7 @@ Text_t Text$quoted(Text_t str, bool colorize); Text_t Text$replace(Text_t str, Pattern_t pat, Text_t replacement, Pattern_t backref_pat, bool recursive); Text_t Text$replace_all(Text_t text, Table_t replacements, Pattern_t backref_pat, bool recursive); Array_t Text$split(Text_t text, Pattern_t pattern); +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); bool Text$has(Text_t text, Pattern_t pattern); |
