ICUTest: style and output formatting fixes

This commit is contained in:
Adrien Destugues 2014-09-29 14:33:00 +02:00
parent 9d1cbc67a6
commit 27a2d2c7ef

View File

@ -53,7 +53,7 @@ void TestLocale(const Locale& loc)
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
printf("--------\niDefault Locale\n--------\n"); printf("--------\nDefault Locale\n--------\n");
Locale defaultLocale; Locale defaultLocale;
TestLocale(defaultLocale); TestLocale(defaultLocale);
printf("--------\nFrench Locale\n--------\n"); printf("--------\nFrench Locale\n--------\n");
@ -76,8 +76,10 @@ main(int argc, char **argv)
printf("--------\nLocale country codes\n--------\n"); printf("--------\nLocale country codes\n--------\n");
const char* const* countryTable = Locale::getISOCountries(); const char* const* countryTable = Locale::getISOCountries();
for (int i=0; countryTable[i] != NULL; i++) for (int i=0; countryTable[i] != NULL; i++) {
if (i % 10 == 0) puts("");
printf("%s\t", countryTable[i]); printf("%s\t", countryTable[i]);
}
printf("\n--------\nNumberFormat\n--------\n"); printf("\n--------\nNumberFormat\n--------\n");
printf("--------\nDateFormat\n--------\n"); printf("--------\nDateFormat\n--------\n");