]> git.ipfire.org Git - thirdparty/glibc.git/commit
locale: Implement struct grouping_iterator
authorFlorian Weimer <fweimer@redhat.com>
Mon, 19 Dec 2022 17:56:54 +0000 (18:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 19 Dec 2022 17:56:54 +0000 (18:56 +0100)
commitffde06c915d10c0717a0980508ccb28506c6ec63
treec52145517af2e8dadf678e24d0ff79adfc7a014b
parentedd1b2a0d9025b849a87f9b7eec616eb820e4fe2
locale: Implement struct grouping_iterator

The iterator allows grouping while scanning forward through
the digits.  This enables emitting digits as they are processed.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
stdio-common/Makefile
stdio-common/grouping_iterator.c [new file with mode: 0644]
stdio-common/grouping_iterator.h [new file with mode: 0644]
stdio-common/tst-grouping_iterator.c [new file with mode: 0644]