2006-12-23 00:06:08 +03:00
|
|
|
#ifndef GIT_UTF8_H
|
|
|
|
#define GIT_UTF8_H
|
|
|
|
|
2008-01-07 06:02:22 +03:00
|
|
|
typedef unsigned int ucs_char_t; /* assuming 32bit int */
|
|
|
|
|
2008-01-02 12:49:58 +03:00
|
|
|
int utf8_width(const char **start, size_t *remainder_p);
|
2009-01-30 12:41:28 +03:00
|
|
|
int utf8_strwidth(const char *string);
|
2006-12-23 00:06:08 +03:00
|
|
|
int is_utf8(const char *text);
|
2006-12-30 23:20:43 +03:00
|
|
|
int is_encoding_utf8(const char *name);
|
|
|
|
|
2008-11-10 20:47:00 +03:00
|
|
|
int strbuf_add_wrapped_text(struct strbuf *buf,
|
|
|
|
const char *text, int indent, int indent2, int width);
|
2011-02-23 12:50:19 +03:00
|
|
|
int strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
|
|
|
|
int indent, int indent2, int width);
|
2006-12-23 00:06:08 +03:00
|
|
|
|
2006-12-24 10:36:55 +03:00
|
|
|
#ifndef NO_ICONV
|
|
|
|
char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
|
|
|
|
#else
|
|
|
|
#define reencode_string(a,b,c) NULL
|
|
|
|
#endif
|
|
|
|
|
2006-12-23 00:06:08 +03:00
|
|
|
#endif
|