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