diff options
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |
