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 a4d31b1..86d3307 100644 --- a/text-util.h +++ b/text-util.h @@ -23,5 +23,7 @@ bool text_range_overlap(const Filerange*, const Filerange*); bool text_range_contains(const Filerange*, size_t pos); /* count the number of graphemes in data */ int text_char_count(const char *data, size_t len); +/* get the approximate display width of data */ +int text_string_width(const char *data, size_t len); #endif |
