aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/text.h b/text.h
index e76ad5b..06b7843 100644
--- a/text.h
+++ b/text.h
@@ -30,6 +30,12 @@ typedef struct Text Text;
typedef struct Piece Piece;
typedef struct TextSave TextSave;
+/** A contiguous part of the text. */
+typedef struct {
+ const char *data; /**< Content, might not be NUL-terminated. */
+ size_t len; /**< Length in bytes. */
+} TextString;
+
/**
* Iterator used to navigate the buffer content.
*