Home | History | Annotate | Download | only in intltest

Lines Matching refs:TimeUnitFormat

42         TimeUnitFormat** formats = new TimeUnitFormat*[2];
43 formats[TimeUnitFormat::kFull] = new TimeUnitFormat(loc, status);
44 if (!assertSuccess("TimeUnitFormat(full)", status, TRUE)) return;
45 formats[TimeUnitFormat::kAbbreviate] = new TimeUnitFormat(loc, TimeUnitFormat::kAbbreviate, status);
46 if (!assertSuccess("TimeUnitFormat(short)", status)) return;
50 for (int style = TimeUnitFormat::kFull;
51 style <= TimeUnitFormat::kAbbreviate;
92 delete formats[TimeUnitFormat::kFull];
93 delete formats[TimeUnitFormat::kAbbreviate];
157 //================= TimeUnitFormat =================
159 TimeUnitFormat* tmf_en = new TimeUnitFormat(Locale("en"), status);
160 if (!assertSuccess("TimeUnitFormat(en...)", status, TRUE)) return;
161 TimeUnitFormat tmf_fr(Locale("fr"), status);
162 if (!assertSuccess("TimeUnitFormat(fr...)", status)) return;
164 assertTrue("TimeUnitFormat: en and fr diff", (*tmf_en != tmf_fr));
166 TimeUnitFormat tmf_assign = *tmf_en;
167 assertTrue("TimeUnitFormat: orig and assign are equal", (*tmf_en == tmf_assign));
169 TimeUnitFormat tmf_copy(tmf_fr);
170 assertTrue("TimeUnitFormat: orig and copy are equal", (tmf_fr == tmf_copy));
172 TimeUnitFormat* tmf_clone = (TimeUnitFormat*)tmf_en->clone();
173 assertTrue("TimeUnitFormat: orig and clone are equal", (*tmf_en == *tmf_clone));
184 assertTrue("TimeUnitFormat: setLocale", (*tmf_en == tmf_fr));
188 TimeUnitFormat* en_long = new TimeUnitFormat(Locale("en"), TimeUnitFormat::kFull, status);
189 if (!assertSuccess("TimeUnitFormat(en...)", status)) return;
192 TimeUnitFormat* en_short = new TimeUnitFormat(Locale("en"), TimeUnitFormat::kAbbreviate, status);
193 if (!assertSuccess("TimeUnitFormat(en...)", status)) return;
196 TimeUnitFormat* format = new TimeUnitFormat(status);
199 if (!assertSuccess("TimeUnitFormat(en...)", status)) return;