diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-23 10:48:41 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-23 14:18:27 +0100 |
| commit | c1584693cbb2d9ea2f2cfb4fc528da30b2554a91 (patch) | |
| tree | 0cadc0bccd9ac91d9118c0e061e2566c7054e70b /text-util.h | |
| parent | 0613073092b9f4172b5b87e9c7f243ff6d61f723 (diff) | |
| download | vis-c1584693cbb2d9ea2f2cfb4fc528da30b2554a91.tar.gz vis-c1584693cbb2d9ea2f2cfb4fc528da30b2554a91.tar.xz | |
vis: improve replacement of combining characters
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 |
