Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-01-07 06:02:22 +0300
committerJunio C Hamano <gitster@pobox.com>2008-01-07 07:27:35 +0300
commit396ccf1fcb91f31d5060555cbffc35bf24172a35 (patch)
tree8fb86e72df7bb26569f81f6c0a1dd12c41be060c /utf8.h
parent40f162b04b3d5155a7e41d27c9f52383a5fa5a9f (diff)
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 <gitster@pobox.com>
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h3
1 files changed, 3 insertions, 0 deletions
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);