diff options
Diffstat (limited to 'src/dged/text.h')
| -rw-r--r-- | src/dged/text.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dged/text.h b/src/dged/text.h index 108ded8..1ad6dbc 100644 --- a/src/dged/text.h +++ b/src/dged/text.h @@ -41,6 +41,7 @@ void text_delete(struct text *text, uint32_t start_line, uint32_t start_offset, enum line_endings text_get_line_ending(const struct text *); +size_t text_size(const struct text *text); uint32_t text_num_lines(const struct text *text); uint32_t text_line_size(const struct text *text, uint32_t lineidx); struct utf8_codepoint_iterator @@ -59,6 +60,8 @@ struct text_chunk text_get_region(struct text *text, uint32_t start_line, uint32_t start_offset, uint32_t end_line, uint32_t end_offset); +struct text_chunk text_get(struct text *text, void *(*alloc)(size_t size)); + enum text_property_type { TextProperty_Colors, TextProperty_Data, |
