ICU-66 Change "string" + int to "string %d", int because we don't need to convert to a UnicodeString here and we don't want to add an integer to a const char *.

X-SVN-Rev: 4814
This commit is contained in:
George Rhoten 2001-05-26 01:23:28 +00:00
parent 23091929ee
commit 732922f538
4 changed files with 4 additions and 4 deletions

View File

@ -767,7 +767,7 @@ void DateFormatRegressionTest::Test4104136(void)
ParsePosition pos(0);
UDate d = sdf->parse(text, pos);
logln(" text: \"" + text + "\"");
logln(" index: " + pos.getIndex());
logln(" index: %d", pos.getIndex());
logln((UnicodeString) " result: " + d);
if(pos.getIndex() != finish.getIndex())
errln("Fail: Expected pos " + finish.getIndex());

View File

@ -68,7 +68,7 @@ void DateFormatRoundTripTest::TestDateFormatRoundTrip()
int32_t locCount = 0;
const Locale *avail = DateFormat::getAvailableLocales(locCount);
logln("DateFormat available locales: " + locCount);
logln("DateFormat available locales: %d", locCount);
if(quick) {
if(locCount > 5)
locCount = 5;

View File

@ -67,7 +67,7 @@ void DateFormatTest::TestWallyWedel()
/*
* How many ids do we have?
*/
logln("Time Zone IDs size: " + ids_length);
logln("Time Zone IDs size: %d", ids_length);
/*
* Column headings (sort of)
*/

View File

@ -478,7 +478,7 @@ void TimeZoneRegressionTest:: Test4151406() {
errln(hname + ' ' + "Fail: " + e);
}*/
}
logln("Maximum zones per offset = " + max);
logln("Maximum zones per offset = %d", max);
}
/**