]>
Commit | Line | Data |
---|---|---|
9e832665 JS |
1 | #ifndef GIT_UTF8_H |
2 | #define GIT_UTF8_H | |
3 | ||
396ccf1f JH |
4 | typedef unsigned int ucs_char_t; /* assuming 32bit int */ |
5 | ||
44b25b87 | 6 | int utf8_width(const char **start, size_t *remainder_p); |
8a9391e9 | 7 | int utf8_strwidth(const char *string); |
9e832665 | 8 | int is_utf8(const char *text); |
677cfed5 JH |
9 | int is_encoding_utf8(const char *name); |
10 | ||
a94410c8 JS |
11 | int strbuf_add_wrapped_text(struct strbuf *buf, |
12 | const char *text, int indent, int indent2, int width); | |
98acc837 JK |
13 | int strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len, |
14 | int indent, int indent2, int width); | |
9e832665 | 15 | |
b45974a6 JH |
16 | #ifndef NO_ICONV |
17 | char *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 | ||
9e832665 | 22 | #endif |