Lines Matching refs:status

30                     UErrorCode status = U_ZERO_ERROR;  in runIndexedTest()  local
32 Locale::setDefault(Locale::getEnglish(), status); in runIndexedTest()
33 if(U_FAILURE(status)) { in runIndexedTest()
37 Locale::setDefault(saveLocale, status); in runIndexedTest()
50 UErrorCode status = U_ZERO_ERROR; in testAPI() local
56 SimpleDateFormat def(status); in testAPI()
57 if(U_FAILURE(status)) { in testAPI()
62 status = U_ZERO_ERROR; in testAPI()
67 SimpleDateFormat pat(pattern, status); in testAPI()
68 if(U_FAILURE(status)) { in testAPI()
69 errln("ERROR: Could not create SimpleDateFormat (pattern) - %s", u_errorName(status)); in testAPI()
72 status = U_ZERO_ERROR; in testAPI()
73 SimpleDateFormat pat_fr(pattern, Locale::getFrench(), status); in testAPI()
74 if(U_FAILURE(status)) { in testAPI()
78 status = U_ZERO_ERROR; in testAPI()
79 DateFormatSymbols *symbols = new DateFormatSymbols(Locale::getFrench(), status); in testAPI()
80 if(U_FAILURE(status)) { in testAPI()
84 status = U_ZERO_ERROR; in testAPI()
85 SimpleDateFormat cust1(pattern, symbols, status); in testAPI()
86 if(U_FAILURE(status)) { in testAPI()
91 status = U_ZERO_ERROR; in testAPI()
92 SimpleDateFormat cust2(pattern, *symbols, status); in testAPI()
93 if(U_FAILURE(status)) { in testAPI()
97 status = U_ZERO_ERROR; in testAPI()
99 SimpleDateFormat ovr1(pattern, override, status); in testAPI()
100 if(U_FAILURE(status)) { in testAPI()
101 … errln("ERROR: Could not create SimpleDateFormat (pattern, override) - %s", u_errorName(status)); in testAPI()
104 status = U_ZERO_ERROR; in testAPI()
105 SimpleDateFormat ovr2(pattern, override, Locale::getGerman(), status); in testAPI()
106 if(U_FAILURE(status)) { in testAPI()
107 …("ERROR: Could not create SimpleDateFormat (pattern, override, locale) - %s", u_errorName(status)); in testAPI()
110 status = U_ZERO_ERROR; in testAPI()
112 SimpleDateFormat ovr3(pattern, override_bogus, Locale::getGerman(), status); in testAPI()
113 if(U_SUCCESS(status)) { in testAPI()
152 status = U_ZERO_ERROR; in testAPI()
153 res2 = cust1.format(fD, res2, pos2, status); in testAPI()
154 if(U_FAILURE(status)) { in testAPI()
169 status = U_ZERO_ERROR; in testAPI()
170 result2 = def.parse(text, status); in testAPI()
171 if(U_FAILURE(status)) { in testAPI()
195 status = U_ZERO_ERROR; in testAPI()
196 UDate startDate = pat.get2DigitYearStart(status); in testAPI()
197 if(U_FAILURE(status)) { in testAPI()
201 status = U_ZERO_ERROR; in testAPI()
202 pat_fr.set2DigitYearStart(startDate, status); in testAPI()
203 if(U_FAILURE(status)) { in testAPI()
208 newSyms =new DateFormatSymbols("gregorian", status); in testAPI()
209 if(U_FAILURE(status)) { in testAPI()
220 status = U_ZERO_ERROR; in testAPI()
231 status = U_ZERO_ERROR; in testAPI()
232 pat.applyLocalizedPattern(p1, status); in testAPI()
233 if(U_FAILURE(status)) { in testAPI()
234 errln("ERROR: applyPattern() failed with %s", u_errorName(status)); in testAPI()
237 status = U_ZERO_ERROR; in testAPI()
238 s3 = pat.toLocalizedPattern(s3, status); in testAPI()
239 if(U_FAILURE(status)) { in testAPI()
251 status = U_ZERO_ERROR; in testAPI()
252 DateFormat *test = new SimpleDateFormat(status); in testAPI()
253 if(U_FAILURE(status)) { in testAPI()
264 SimpleDateFormat object(UNICODE_STRING_SIMPLE("YYYY'W'wwe"), status); in testAPI()
265 if(U_FAILURE(status)) { in testAPI()