aboutsummaryrefslogtreecommitdiff
path: root/builtins/text.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-05-19 14:38:44 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-05-19 14:38:44 -0400
commit7dddfb71a0ebf8dbbe8a9bdfc156d7471ff943bd (patch)
tree3a7941ff59accef371c12cc2f5859592095bf4a3 /builtins/text.h
parentb0d1daa0f3abe5f9128064388adfffccd2608ca5 (diff)
Add Text.slice()
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 3cda9d7b..cd191cb6 100644
--- a/builtins/text.h
+++ b/builtins/text.h
@@ -23,6 +23,7 @@ CORD Text$quoted(CORD str, bool colorize);
int Text$compare(const CORD *x, const CORD *y);
bool Text$equal(const CORD *x, const CORD *y);
uint32_t Text$hash(const CORD *cord);
+CORD Text$slice(CORD text, int64_t first, int64_t length);
CORD Text$upper(CORD str);
CORD Text$lower(CORD str);
CORD Text$title(CORD str);