remote-hg: fix hg-git test-case
[git/mingw/j6t.git] / utf8.h
blob1f8ecad1e88451c622de08ea14414021da64f402
1 #ifndef GIT_UTF8_H
2 #define GIT_UTF8_H
4 typedef unsigned int ucs_char_t; /* assuming 32bit int */
6 int utf8_width(const char **start, size_t *remainder_p);
7 int utf8_strwidth(const char *string);
8 int is_utf8(const char *text);
9 int is_encoding_utf8(const char *name);
10 int same_encoding(const char *, const char *);
11 int utf8_fprintf(FILE *, const char *, ...);
13 void strbuf_add_wrapped_text(struct strbuf *buf,
14 const char *text, int indent, int indent2, int width);
15 void strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
16 int indent, int indent2, int width);
18 #ifndef NO_ICONV
19 char *reencode_string_iconv(const char *in, size_t insz, iconv_t conv);
20 char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
21 #else
22 #define reencode_string(a,b,c) NULL
23 #endif
25 int mbs_chrlen(const char **text, size_t *remainder_p, const char *encoding);
27 #endif