1#ifndef GIT_UTF8_H
2#define GIT_UTF8_H
3
4typedef unsigned int ucs_char_t; /* assuming 32bit int */
5
6ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
7int utf8_width(const char **start, size_t *remainder_p);
8int utf8_strwidth(const char *string);
9int is_utf8(const char *text);
10int is_encoding_utf8(const char *name);
11
12int print_wrapped_text(const char *text, int indent, int indent2, int len);
13int strbuf_add_wrapped_text(struct strbuf *buf,
14 const char *text, int indent, int indent2, int width);
15
16#ifndef NO_ICONV
17char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
18#else
19#define reencode_string(a,b,c) NULL
20#endif
21
22#endif