summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-04-19 09:08:45 +1000
committerJunio C Hamano <gitster@pobox.com>2013-04-18 16:28:28 -0700
commit2bc1e7ecba1fcd73112d5e6703bdc28fb4da530a (patch)
treeb092b084056c7605ca66ee03f482a7d5252a3350 /utf8.h
parent4247fe79567fed2c9f896e2cc20246d71d8a33a2 (diff)
downloadgit-2bc1e7ecba1fcd73112d5e6703bdc28fb4da530a.tar.gz
utf8.c: add utf8_strnwidth() with the ability to skip ansi sequences
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 1f8ecad1e8..d3da96f234 100644
--- a/utf8.h
+++ b/utf8.h
@@ -4,6 +4,7 @@
typedef unsigned int ucs_char_t; /* assuming 32bit int */
int utf8_width(const char **start, size_t *remainder_p);
+int utf8_strnwidth(const char *string, int len, int skip_ansi);
int utf8_strwidth(const char *string);
int is_utf8(const char *text);
int is_encoding_utf8(const char *name);