From e15edaaa06b9a08aa4131588da6aa9adca610ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 27 Jul 2015 15:08:41 +0200 Subject: text-util: add text_range_contains --- text-util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'text-util.h') diff --git a/text-util.h b/text-util.h index d81c645..8e9eedb 100644 --- a/text-util.h +++ b/text-util.h @@ -17,5 +17,7 @@ Filerange text_range_union(Filerange*, Filerange*); Filerange text_range_new(size_t a, size_t b); /* test whether two ranges overlap */ bool text_range_overlap(Filerange*, Filerange*); +/* test whether a given position is within a certain range */ +bool text_range_contains(Filerange*, size_t pos); -#endif \ No newline at end of file +#endif -- cgit v1.2.3