2006-12-23 05:06:08 +08:00
|
|
|
#ifndef GIT_UTF8_H
|
|
|
|
#define GIT_UTF8_H
|
|
|
|
|
2008-01-07 11:02:22 +08:00
|
|
|
typedef unsigned int ucs_char_t; /* assuming 32bit int */
|
|
|
|
|
2008-01-02 17:49:58 +08:00
|
|
|
ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
|
|
|
|
int utf8_width(const char **start, size_t *remainder_p);
|
2009-01-30 17:41:28 +08:00
|
|
|
int utf8_strwidth(const char *string);
|
2006-12-23 05:06:08 +08:00
|
|
|
int is_utf8(const char *text);
|
2006-12-31 04:20:43 +08:00
|
|
|
int is_encoding_utf8(const char *name);
|
|
|
|
|
2007-02-27 23:20:31 +08:00
|
|
|
int print_wrapped_text(const char *text, int indent, int indent2, int len);
|
2006-12-23 05:06:08 +08:00
|
|
|
|
2006-12-24 15:36:55 +08: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 05:06:08 +08:00
|
|
|
#endif
|