From 396ccf1fcb91f31d5060555cbffc35bf24172a35 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 6 Jan 2008 19:02:22 -0800 Subject: utf8: pick_one_utf8_char() utf8_width() function was doing two different things. To pick a valid character from UTF-8 stream, and compute the display width of that character. This splits the former to a separate function pick_one_utf8_char(). Signed-off-by: Junio C Hamano --- utf8.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index 15db6f1f27..4a7f0464c4 100644 --- a/utf8.h +++ b/utf8.h @@ -1,6 +1,9 @@ #ifndef GIT_UTF8_H #define GIT_UTF8_H +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); int is_utf8(const char *text); int is_encoding_utf8(const char *name); -- cgit v1.2.1