Merge branch 'js/use-sc-open-max'
[git/mingw.git] / utf8.h
blob3c0ae7624e027a802c38c4afb9fe5b0a590e093d
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);
11 int strbuf_add_wrapped_text(struct strbuf *buf,
12 const char *text, int indent, int indent2, int width);
13 int strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
14 int indent, int indent2, int width);
16 #ifndef NO_ICONV
17 char *reencode_string_iconv(const char *in, size_t insz, iconv_t conv);
18 char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
19 #else
20 #define reencode_string(a,b,c) NULL
21 #endif
23 #endif