Re: [PATCH v14 03/13] utf8: add function to align a string into given strbuf

2015-08-29 Thread Karthik Nayak
On Sat, Aug 29, 2015 at 10:40 PM, Torsten Bögershausen wrote: > On 29.08.15 16:12, Karthik Nayak wrote: >> diff --git a/utf8.h b/utf8.h >> index 5a9e94b..7930b44 100644 >> --- a/utf8.h >> +++ b/utf8.h >> @@ -55,4 +55,19 @@ int mbs_chrlen(const char **text, size_t *remainder_p, >> const char *enco

Re: [PATCH v14 03/13] utf8: add function to align a string into given strbuf

2015-08-29 Thread Torsten Bögershausen
On 29.08.15 16:12, Karthik Nayak wrote: > diff --git a/utf8.h b/utf8.h > index 5a9e94b..7930b44 100644 > --- a/utf8.h > +++ b/utf8.h > @@ -55,4 +55,19 @@ int mbs_chrlen(const char **text, size_t *remainder_p, > const char *encoding); > */ > int is_hfs_dotgit(const char *path); > > +typedef en

[PATCH v14 03/13] utf8: add function to align a string into given strbuf

2015-08-29 Thread Karthik Nayak
Add strbuf_utf8_align() which will align a given string into a strbuf as per given align_type and width. If the width is greater than the string length then no alignment is performed. Helped-by: Eric Sunshine Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by: Karthik Nayak