summaryrefslogtreecommitdiffstats
path: root/utf8.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-14 19:29:08 +0100
committerJunio C Hamano <gitster@pobox.com>2013-02-14 19:29:08 +0100
commit3cc3cf970c5ce477bde78df73614d1efba2b52eb (patch)
tree2bcc9526ccf586db926050ee6e01fe2e2e418982 /utf8.h
parentMerge branch 'mg/bisect-doc' (diff)
parentAdd utf8_fprintf helper that returns correct number of columns (diff)
downloadgit-3cc3cf970c5ce477bde78df73614d1efba2b52eb.tar.xz
git-3cc3cf970c5ce477bde78df73614d1efba2b52eb.zip
Merge branch 'jx/utf8-printf-width'
Use a new helper that prints a message and counts its display width to align the help messages parse-options produces. * jx/utf8-printf-width: Add utf8_fprintf helper that returns correct number of columns
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utf8.h b/utf8.h
index a214238bdd..501b2bd9c4 100644
--- a/utf8.h
+++ b/utf8.h
@@ -8,6 +8,7 @@ int utf8_strwidth(const char *string);
int is_utf8(const char *text);
int is_encoding_utf8(const char *name);
int same_encoding(const char *, const char *);
+int utf8_fprintf(FILE *, const char *, ...);
void strbuf_add_wrapped_text(struct strbuf *buf,
const char *text, int indent, int indent2, int width);