aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/text.c b/text.c
index 390be98..b994bc4 100644
--- a/text.c
+++ b/text.c
@@ -1548,6 +1548,11 @@ bool text_byte_get(Text *txt, size_t pos, char *buf) {
return text_bytes_get(txt, pos, 1, buf);
}
+bool text_char_get(Text *txt, size_t pos, char *buf) {
+ Iterator it = text_iterator_get(txt, pos);
+ return text_iterator_char_get(&it, buf);
+}
+
size_t text_bytes_get(Text *txt, size_t pos, size_t len, char *buf) {
if (!buf)
return 0;