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