From f38ab16901a787aff37904c5f80e94f2371c7456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 28 Jul 2015 17:19:30 +0200 Subject: text-util: introduce text_range_equal --- text-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text-util.h') diff --git a/text-util.h b/text-util.h index 8e9eedb..80affd5 100644 --- a/text-util.h +++ b/text-util.h @@ -15,6 +15,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 are equal */ +bool text_range_equal(Filerange*, Filerange*); /* test whether two ranges overlap */ bool text_range_overlap(Filerange*, Filerange*); /* test whether a given position is within a certain range */ -- cgit v1.2.3