aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-24 21:47:55 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-25 00:55:19 +0200
commite57b57e47266c1ac2fded9e84e8bf59cc8fadd7f (patch)
tree47b5c3b54c0c245d8f98bfdb8b057930ddd0d482 /text.h
parent0329e4aee01778f67c718cd827daa6bcfcef45f7 (diff)
downloadvis-e57b57e47266c1ac2fded9e84e8bf59cc8fadd7f.tar.gz
vis-e57b57e47266c1ac2fded9e84e8bf59cc8fadd7f.tar.xz
text: add text_range_overlap
Diffstat (limited to 'text.h')
-rw-r--r--text.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/text.h b/text.h
index e5f1670..65ac053 100644
--- a/text.h
+++ b/text.h
@@ -26,6 +26,8 @@ Filerange text_range_empty(void);
Filerange text_range_union(Filerange*, Filerange*);
/* create new range [min(a,b), max(a,b)] */
Filerange text_range_new(size_t a, size_t b);
+/* test whether two ranges overlap */
+bool text_range_overlap(Filerange*, Filerange*);
typedef struct Text Text;
typedef struct Piece Piece;