Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.73 kb
9e83266 @dscho commit-tree: encourage UTF-8 commit messages.
dscho authored
1 #ifndef GIT_UTF8_H
2 #define GIT_UTF8_H
3
396ccf1 @gitster utf8: pick_one_utf8_char()
gitster authored
4 typedef unsigned int ucs_char_t; /* assuming 32bit int */
5
44b25b8 @gitster utf8_width(): allow non NUL-terminated input
gitster authored
6 int utf8_width(const char **start, size_t *remainder_p);
8a9391e @geofft utf8: add utf8_strwidth()
geofft authored
7 int utf8_strwidth(const char *string);
9e83266 @dscho commit-tree: encourage UTF-8 commit messages.
dscho authored
8 int is_utf8(const char *text);
677cfed commit-tree: cope with different ways "utf-8" can be spelled.
Junio C Hamano authored
9 int is_encoding_utf8(const char *name);
10
a94410c @dscho Add strbuf_add_wrapped_text() to utf8.[ch]
dscho authored
11 int strbuf_add_wrapped_text(struct strbuf *buf,
12 const char *text, int indent, int indent2, int width);
98acc83 @peff strbuf: add fixed-length version of add_wrapped_text
peff authored
13 int strbuf_add_wrapped_bytes(struct strbuf *buf, const char *data, int len,
14 int indent, int indent2, int width);
9e83266 @dscho commit-tree: encourage UTF-8 commit messages.
dscho authored
15
b45974a Move encoding conversion routine out of mailinfo to utf8.c
Junio C Hamano authored
16 #ifndef NO_ICONV
76759c7 @tboegi git on Mac OS and precomposed unicode
tboegi authored
17 char *reencode_string_iconv(const char *in, size_t insz, iconv_t conv);
b45974a Move encoding conversion routine out of mailinfo to utf8.c
Junio C Hamano authored
18 char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding);
19 #else
20 #define reencode_string(a,b,c) NULL
21 #endif
22
9e83266 @dscho commit-tree: encourage UTF-8 commit messages.
dscho authored
23 #endif
Something went wrong with that request. Please try again.