print_wrapped_text(): allow hard newlines
[git/git.git] / utf8.h
CommitLineData
9e832665
JS
1#ifndef GIT_UTF8_H
2#define GIT_UTF8_H
3
396ccf1f
JH
4typedef unsigned int ucs_char_t; /* assuming 32bit int */
5
44b25b87
JH
6ucs_char_t pick_one_utf8_char(const char **start, size_t *remainder_p);
7int utf8_width(const char **start, size_t *remainder_p);
8a9391e9 8int utf8_strwidth(const char *string);
9e832665 9int is_utf8(const char *text);
677cfed5
JH
10int is_encoding_utf8(const char *name);
11
094e03b0 12int print_wrapped_text(const char *text, int indent, int indent2, int len);
9e832665 13
b45974a6
JH
14#ifndef NO_ICONV
15char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
16#else
17#define reencode_string(a,b,c) NULL
18#endif
19
9e832665 20#endif