opnsense-src/lib/libc/tests/stdlib
Jose Luis Duran 947efadc3d strfmon: Fix alignment when enclosed by parentheses
Take into consideration the possibility of quantities enclosed by
parentheses when aligning.

Matches the examples from The Open Group's:

Format  Before          After
%(#5n   [$   123.45]    [ $   123.45 ]  Use an alternative pos/neg style
        [($   123.45)]  [($   123.45)]
        [$ 3,456.78]    [ $ 3,456.78 ]

%!(#5n  [   123.45]     [    123.45 ]   Disable the currency symbol
        [(   123.45)]   [(   123.45)]
        [ 3,456.78]     [  3,456.78 ]

https://pubs.opengroup.org/onlinepubs/9699919799/functions/strfmon.html

SD5-XSH-ERN-29 is applied, updating the examples for %(#5n and %!(#5n.

Obtained from:	Darwin
Reviewed by:	kib
PR:	267282
Github PR:	#619
MFC after:	1 week
2022-10-26 00:40:17 +03:00
..
dynthr_mod libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used 2021-11-29 17:39:51 +02:00
clearenv_test.c libc: fix the test 2021-11-08 12:35:03 +01:00
cxa_thread_atexit_nothr_test.cc
cxa_thread_atexit_test.cc
dynthr_test.c libc/tests: Add test case for jemalloc/libthr bug fixed in r343566 2019-01-31 02:49:24 +00:00
heapsort_test.c
Makefile qsort_b_test: Only build on clang. 2022-10-03 16:14:39 -07:00
Makefile.depend
mergesort_test.c
qsort_b_test.c libc: add test case for qsort_b(3) 2022-09-06 23:11:46 -07:00
qsort_r_compat_test.c Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
qsort_r_test.c Alter the prototype of qsort_r(3) to match POSIX, which adopted the 2022-09-30 15:26:30 -07:00
qsort_s_test.c Add qsort_s(3). Apart from the constraints, it also makes it easier 2020-01-20 11:40:07 +00:00
qsort_test.c
set_constraint_handler_s_test.c
strfmon_test.c strfmon: Fix alignment when enclosed by parentheses 2022-10-26 00:40:17 +03:00
test-sort.h
tsearch_test.c