diff options
author | Karel Zak | 2016-01-22 16:51:59 +0100 |
---|---|---|
committer | Karel Zak | 2016-01-22 16:51:59 +0100 |
commit | 57867795aa7dead56a7339a13f08ea1f3a5de615 (patch) | |
tree | a1b1f247bcb0c70cc135efd98c43c28b0b0234f5 /include/mbsalign.h | |
parent | libsmartcols: add title to the test application (diff) | |
download | kernel-qcow2-util-linux-57867795aa7dead56a7339a13f08ea1f3a5de615.tar.gz kernel-qcow2-util-linux-57867795aa7dead56a7339a13f08ea1f3a5de615.tar.xz kernel-qcow2-util-linux-57867795aa7dead56a7339a13f08ea1f3a5de615.zip |
libsmartcols: support multibyte titles, rename wrap to padding
- let's support multibyte table titles
- use lib/mbalign.c to align the title
- rename title_wrap to title_padding (we already use "wrap" on another
places for another things)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/mbsalign.h')
-rw-r--r-- | include/mbsalign.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbsalign.h b/include/mbsalign.h index 5eaf606e5..74d25da11 100644 --- a/include/mbsalign.h +++ b/include/mbsalign.h @@ -46,6 +46,10 @@ extern size_t mbsalign (const char *src, char *dest, size_t dest_size, size_t *width, mbs_align_t align, int flags); +extern size_t mbsalign_with_padding (const char *src, char *dest, size_t dest_size, + size_t *width, mbs_align_t align, int flags, + int padchar); + extern size_t mbs_safe_nwidth(const char *buf, size_t bufsz, size_t *sz); extern size_t mbs_safe_width(const char *s); |