aboutsummaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2008-11-10 18:47:00 +0100
committerJunio C Hamano <gitster@pobox.com>2009-10-19 00:57:29 -0700
commita94410c8134581f2f11a7db838da4d8725911a3c (patch)
treeeb8919e07a23c67b7b582df7364b67b108e4498b /utf8.h
parentae0b27023018416c0bfe54823466dee67c20705a (diff)
downloadgit-a94410c8134581f2f11a7db838da4d8725911a3c.tar.gz
git-a94410c8134581f2f11a7db838da4d8725911a3c.tar.xz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index 2f1b14ff4..ae30ae4c6 100644
--- a/utf8.h
+++ b/utf8.h
@@ -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);