]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: add more control flags to mbsalign
authorPádraig Brady <P@draigBrady.com>
Tue, 4 Sep 2012 12:12:23 +0000 (13:12 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 11 Sep 2012 02:23:42 +0000 (03:23 +0100)
commit6cf9c59b1635906f3595fc43dcd36dc4433fd7aa
treeb2a419c97f592646046443bae73191edd5ce3c86
parent4fdd1cc597209b9e85ed66fdb594abca6f148155
maint: add more control flags to mbsalign

* gl/lib/mbsalign.h: Add MBA_UNIBYTE_ONLY (to allow
faster processing).  Also add MBA_NO_LEFT_PAD, MBA_NO_RIGHT_PAD
to give greater control of padding, useful with the first
or last fields on a line.
* gl/lib/mbsalign.c (mbsalign): Implement the new flags.
* gl/tests/test-mbsalign.c (main): Test combinations
of the new flags.
gl/lib/mbsalign.c
gl/lib/mbsalign.h
gl/tests/test-mbsalign.c