"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/test/intltest/dtifmtts.cpp" between
icu4c-67rc-src.tgz and icu4c-67_1-src.tgz

About: ICU (International Components for Unicode) is a set of C/C++ and Java libraries providing Unicode and Globalization support for software applications on a wide variety of platforms.

dtifmtts.cpp  (icu4c-67rc-src.tgz):dtifmtts.cpp  (icu4c-67_1-src.tgz)
skipping to change at line 1855 skipping to change at line 1855
{u"12 AM", u"00", u"00", u"12 AM", u"12 AM", u"0 (hour: 12)", u"12 AM"}, {u"12 AM", u"00", u"00", u"12 AM", u"12 AM", u"0 (hour: 12)", u"12 AM"},
// Hour-cycle: K // Hour-cycle: K
{u"0 am", u"00", u"00", u"0 am", u"0 am", u"0 (\u0918\u0902\u091F\u093E: 00)", u"\u0930\u093E\u0924 0"} {u"0 am", u"00", u"00", u"0 am", u"0 am", u"0 (\u0918\u0902\u091F\u093E: 00)", u"\u0930\u093E\u0924 0"}
}; };
int32_t i = 0; int32_t i = 0;
for (Locale locale : locales) { for (Locale locale : locales) {
int32_t j = 0; int32_t j = 0;
for (const UnicodeString skeleton : {u"hh", u"HH", u"kk", u"KK", u"jj", u"JJs", u"CC"}) { for (const UnicodeString skeleton : {u"hh", u"HH", u"kk", u"KK", u"jj", u"JJs", u"CC"}) {
LocalPointer<DateIntervalFormat> dtifmt(DateIntervalFormat::createIn stance(skeleton, locale, status)); LocalPointer<DateIntervalFormat> dtifmt(DateIntervalFormat::createIn stance(skeleton, locale, status));
if (status.errDataIfFailureAndReset()) {
continue;
}
FieldPosition fposition; FieldPosition fposition;
UnicodeString result; UnicodeString result;
LocalPointer<Calendar> calendar(Calendar::createInstance(TimeZone::c reateTimeZone(timeZone), status)); LocalPointer<Calendar> calendar(Calendar::createInstance(TimeZone::c reateTimeZone(timeZone), status));
calendar->setTime(UDate(1563235200000), status); calendar->setTime(UDate(1563235200000), status);
dtifmt->format(*calendar, *calendar, result, fposition, status); dtifmt->format(*calendar, *calendar, result, fposition, status);
assertEquals("Formatted result", expected[i][j++], result); assertEquals("Formatted result", expected[i][j++], result);
} }
i++; i++;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)