diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
| commit | 620ebeab8d6040c20c3278acebeafd02a67057a5 (patch) | |
| tree | 63d9cd54d41d74b2b3f5b870967d3ad2933e5e08 /builtins/text.h | |
| parent | 337aa911a9027602d47cd56ddbfcde0230a48943 (diff) | |
Fixing string methods
Diffstat (limited to 'builtins/text.h')
| -rw-r--r-- | builtins/text.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtins/text.h b/builtins/text.h index 1e671695..4fd3d5ac 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -61,8 +61,13 @@ 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); 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); public Text_t Text$format(const char *fmt, ...); +array_t Text$clusters(Text_t text); +array_t Text$utf32_codepoints(Text_t text); +array_t Text$utf8_bytes(Text_t text); +array_t Text$codepoint_names(Text_t text); extern const TypeInfo $Text; |
