diff options
Diffstat (limited to 'text-util.h')
| -rw-r--r-- | text-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
