From c1584693cbb2d9ea2f2cfb4fc528da30b2554a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 23 Nov 2015 10:48:41 +0100 Subject: vis: improve replacement of combining characters --- 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 80affd5..9bfa705 100644 --- a/text-util.h +++ b/text-util.h @@ -21,5 +21,7 @@ bool text_range_equal(Filerange*, Filerange*); bool text_range_overlap(Filerange*, Filerange*); /* test whether a given position is within a certain range */ bool text_range_contains(Filerange*, size_t pos); +/* count the number of graphemes in data */ +int text_char_count(const char *data, size_t len); #endif -- cgit v1.2.3