Merge branch 'gf/maint-sh-setup-nongit-ok' into maint-1.6.6
[tgit.git] / utf8.h
blobb09687d500b89d4f3a0644fea8b1eff420e0748a
1 #ifndef GIT_UTF8_H
2 #define GIT_UTF8_H
4 typedef unsigned int ucs_char_t; /* assuming 32bit int */
6 ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
7 int utf8_width(const char **start, size_t *remainder_p);
8 int utf8_strwidth(const char *string);
9 int is_utf8(const char *text);
10 int is_encoding_utf8(const char *name);
12 int strbuf_add_wrapped_text(struct strbuf *buf,
13 const char *text, int indent, int indent2, int width);
15 #ifndef NO_ICONV
16 char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
17 #else
18 #define reencode_string(a,b,c) NULL
19 #endif
21 #endif