diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-27 11:56:20 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-28 13:21:49 +0200 |
| commit | b1302b29d9158bb62707203ea54fa5b13904ac15 (patch) | |
| tree | 7816891578b604b66cdf485cf8d88f8f8c015eee /text.h | |
| parent | 57ffc7e18a1ac0b44d14fd8bc61442b7651dcd02 (diff) | |
| download | vis-b1302b29d9158bb62707203ea54fa5b13904ac15.tar.gz vis-b1302b29d9158bb62707203ea54fa5b13904ac15.tar.xz | |
text: move utility functions to separate file
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -15,20 +15,6 @@ typedef struct { size_t start, end; /* range in bytes from start of the file */ } Filerange; - -/* test whether the given range is valid (start <= end) */ -bool text_range_valid(Filerange*); -/* get the size of the range (end-start) or zero if invalid */ -size_t text_range_size(Filerange*); -/* create an empty / invalid range of size zero */ -Filerange text_range_empty(void); -/* merge two ranges into a new one which contains both of them */ -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; |
