aboutsummaryrefslogtreecommitdiff
path: root/builtins/text.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-04 03:02:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-04 03:02:30 -0400
commite0aca8fa72546b385bdb345fb65f4fe3b9c6f4fc (patch)
treeba64b7b9a0bbfc7d4b92bb6f6e81f929dac400c5 /builtins/text.h
parentc3f8b40c84e09543a5fbb2adf8b9563e42650696 (diff)
Add method for getting a length-based string as Text
Diffstat (limited to 'builtins/text.h')
-rw-r--r--builtins/text.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/text.h b/builtins/text.h
index bcfe8055..a25a61d5 100644
--- a/builtins/text.h
+++ b/builtins/text.h
@@ -23,6 +23,7 @@ Text_t Text$_concat(int n, Text_t items[n]);
#define Texts(...) Text$concat(__VA_ARGS__)
Text_t Text$slice(Text_t text, Int_t first_int, Int_t last_int);
Text_t Text$from_str(const char *str);
+Text_t Text$from_strn(const char *str, size_t len);
uint64_t Text$hash(Text_t *text);
int32_t Text$compare(const Text_t *a, const Text_t *b);
bool Text$equal(const Text_t *a, const Text_t *b);