From 8a9391e9440028c03345afa9f21459237a529592 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Fri, 30 Jan 2009 04:41:28 -0500 Subject: utf8: add utf8_strwidth() I'm about to use this pattern more than once, so make it a common function. Signed-off-by: Geoffrey Thomas Signed-off-by: Junio C Hamano --- utf8.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index 98cce1b038..2f1b14ff49 100644 --- a/utf8.h +++ b/utf8.h @@ -5,6 +5,7 @@ typedef unsigned int ucs_char_t; /* assuming 32bit int */ 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 utf8_strwidth(const char *string); int is_utf8(const char *text); int is_encoding_utf8(const char *name); -- cgit v1.2.3