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
This commit is contained in:
1
utf8.h
1
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);
|
||||
|
Reference in New Issue
Block a user