]>
git.saurik.com Git - wxWidgets.git/blob - tests/formatconverter/formats.pl
3 # Prints test formats for wxFormatConverter. The output is in two columns (tab
4 # separated), the first is the test input and the second is the expected
7 # run the output thought formattest like this:
8 # ./formats.pl | ./formattest
25 for my $type ('d', 's', 'S', 'c', 'C')
27 for my $mod ('', 'h', 'l', 'hh', 'll', 'j') #, 'z', 't', 'L')
29 for my $prec ('', '.*', '.10')
31 for my $width ('', '*', '10')
33 for my $flag ('', '#') #, '0', '-', ' ', '+' )
35 my ($newmod, $newtype) = ($mod, $type);
37 if ($transform{$mod.$type}) {
38 ($newmod, $newtype) = @{$transform{$mod.$type}};
41 print "%$flag$width$prec$mod$type\t".
42 "%$flag$width$prec$newmod$newtype\n";