diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2008-11-10 18:47:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-19 00:57:29 -0700 |
commit | a94410c8134581f2f11a7db838da4d8725911a3c (patch) | |
tree | eb8919e07a23c67b7b582df7364b67b108e4498b /utf8.h | |
parent | ae0b27023018416c0bfe54823466dee67c20705a (diff) | |
download | git-a94410c8134581f2f11a7db838da4d8725911a3c.tar.gz |
Add strbuf_add_wrapped_text() to utf8.[ch]
The newly added function can rewrap text according to a given first-line
indent, other-indent and text width.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,6 +10,8 @@ int is_utf8(const char *text); int is_encoding_utf8(const char *name); int print_wrapped_text(const char *text, int indent, int indent2, int len); +int strbuf_add_wrapped_text(struct strbuf *buf, + const char *text, int indent, int indent2, int width); #ifndef NO_ICONV char *reencode_string(const char *in, const char *out_encoding, const char *in_encoding); |