diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 00:34:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 00:34:27 -0400 |
| commit | df844946f7d45fa39acf040eb8922ab658f9f5dd (patch) | |
| tree | f5e3f270d3cd2f855ee1d9fc31f709acee4c0be4 /builtins/text.h | |
| parent | ec688c11bb92a10891cad98de7470a2773dfd167 (diff) | |
Add Text:matches() for convenience and performance
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 ddc91afc..bcfe8055 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -38,6 +38,7 @@ array_t Text$split(Text_t text, Pattern_t pattern); 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); +bool Text$matches(Text_t text, Pattern_t pattern); const char *Text$as_c_string(Text_t text); public Text_t Text$format(const char *fmt, ...); array_t Text$clusters(Text_t text); |
