diff options
| author | Junio C Hamano <gitster@pobox.com> | 2008-01-02 01:49:58 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2008-01-06 20:53:46 -0800 |
| commit | 44b25b872f926ba92bae9ddf2495e7f59d0c96e2 (patch) | |
| tree | 579d32398870dd862ea60008566dd498acad6902 /utf8.h | |
| parent | 396ccf1fcb91f31d5060555cbffc35bf24172a35 (diff) | |
| download | git-44b25b872f926ba92bae9ddf2495e7f59d0c96e2.tar.gz | |
utf8_width(): allow non NUL-terminated input
The original interface assumed that the input string is
always terminated with a NUL, but that wasn't too useful.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'utf8.h')
| -rw-r--r-- | utf8.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,8 +3,8 @@ typedef unsigned int ucs_char_t; /* assuming 32bit int */ -ucs_char_t pick_one_utf8_char(const char **start); -int utf8_width(const char **start); +ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p); +int utf8_width(const char **start, size_t *remainder_p); int is_utf8(const char *text); int is_encoding_utf8(const char *name); |
