diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:27:27 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-19 13:27:27 -0500 |
| commit | ccada385c4fdc2dc320b0ab468c7413ff27bcc7d (patch) | |
| tree | a9a70ea9b014212952c8d61a0bb5a0ff58a45f88 /stdlib/text.h | |
| parent | e97c3850b817f6bda6f7ea3fff5c345c5f48bcd8 (diff) | |
Add Text.at(i) for getting a single cluster
Diffstat (limited to 'stdlib/text.h')
| -rw-r--r-- | stdlib/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/text.h b/stdlib/text.h index 45aa00ca..4f23834f 100644 --- a/stdlib/text.h +++ b/stdlib/text.h @@ -28,6 +28,7 @@ Text_t Text$_concat(int n, Text_t items[n]); #define Text$concat(...) Text$_concat(sizeof((Text_t[]){__VA_ARGS__})/sizeof(Text_t), (Text_t[]){__VA_ARGS__}) #define Texts(...) Text$concat(__VA_ARGS__) Text_t Text$slice(Text_t text, Int_t first_int, Int_t last_int); +Text_t Text$cluster(Text_t text, Int_t index_int); OptionalText_t Text$from_str(const char *str); OptionalText_t Text$from_strn(const char *str, size_t len); PUREFUNC uint64_t Text$hash(Text_t *text); |
