ICUTest: style and output formatting fixes
This commit is contained in:
parent
9d1cbc67a6
commit
27a2d2c7ef
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user