Home | History | Annotate | Download | only in intltest

Lines Matching refs:ec

473     UErrorCode ec = U_ZERO_ERROR;
478 DateFormatSymbols rootSyms(Locale(""), ec);
479 if (U_FAILURE(ec)) {
480 dataerrln("Unable to create DateFormatSymbols - %s", u_errorName(ec));
499 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec);
506 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec);
507 if(U_FAILURE(ec)){
508 errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ UnicodeString(u_errorName(ec)));
1124 UErrorCode ec = U_ZERO_ERROR;
1125 SimpleDateFormat fmt("dd/MM/yy", Locale::getUK(), ec);
1126 if (U_FAILURE(ec)) {
1127 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1312 UErrorCode ec = U_ZERO_ERROR;
1337 cal = Calendar::createInstance(Locale::getUS(), ec);
1338 if (cal == NULL || U_FAILURE(ec)) {
1340 u_errorName(ec));
1366 when = cal->getTime(ec);
1367 if (U_FAILURE(ec)) {
1368 errln((UnicodeString)"FAIL: cal->getTime() failed with " + u_errorName(ec));
1474 UErrorCode ec = U_ZERO_ERROR;
1475 SimpleDateFormat f(UnicodeString("Yesterday"), ec);
1476 if (U_FAILURE(ec)) {
1477 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1489 UErrorCode ec = U_ZERO_ERROR;
1491 SimpleDateFormat fmt("EEEE, dd MMMM yyyy h:mm:ss a", Locale("el", "", ""), ec);
1492 if (U_FAILURE(ec)) {
1493 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1816 UErrorCode ec = U_ZERO_ERROR;
1817 SimpleDateFormat fmt("", loc, ec);
1818 SimpleDateFormat ref(data[i++], loc, ec);
1819 SimpleDateFormat gotfmt("G yyyy MM dd HH:mm:ss z", loc, ec);
1820 if (U_FAILURE(ec)) {
1821 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1831 ec = U_ZERO_ERROR;
1836 UDate got = fmt.parse(input, ec);
1838 if (U_FAILURE(ec)) {
1899 UErrorCode ec = U_ZERO_ERROR;
1901 SimpleDateFormat fmt("", loc, ec);
1902 SimpleDateFormat ref(data[i++], loc, ec);
1903 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
1904 if (U_FAILURE(ec)) {
1905 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1923 UDate date = ref.parse(ctou(datestr), ec);
1924 if (!assertSuccess("parse", ec)) return;
1930 date = ref.parse(ctou(datestr), ec);
1931 if (!assertSuccess("parse", ec)) return;
1932 UDate parsedate = fmt.parse(ctou(string), ec);
1933 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
1944 UDate date = ref.parse(ctou(datestr), ec);
1945 if (!assertSuccess("parse", ec)) return;
1946 UDate parsedate = fmt.parse(ctou(string), ec);
1947 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
1962 UDate date = ref.parse(ctou(datestr), ec);
1963 if (!assertSuccess("parse", ec)) return;
1968 UDate parsedate = fmt.parse(string, ec);
1969 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
2003 UErrorCode ec = U_ZERO_ERROR;
2005 SimpleDateFormat fmt("", loc, ec);
2006 SimpleDateFormat ref(data[i++], loc, ec);
2007 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
2008 if (U_FAILURE(ec)) {
2009 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
2024 UDate date = ref.parse(ctou(datestr), ec);
2025 if (!assertSuccess("parse", ec)) return;