]> git.ipfire.org Git - thirdparty/git.git/commit - utf8.c
utf8: add function to align a string into given strbuf
authorKarthik Nayak <karthik.188@gmail.com>
Thu, 10 Sep 2015 15:48:19 +0000 (21:18 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2015 17:02:48 +0000 (10:02 -0700)
commit110dcda50d5ddaf3557666eea3b012a6ccc74dce
treef7691945290bc4f51be7ca7dd073fbd8ebf8535e
parent574e96a2418cce16934f2b6e20a0af5ff5f85c92
utf8: add function to align a string into given strbuf

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 <sunshine@sunshineco.com>
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
utf8.c
utf8.h