Home | History | Annotate | Download | only in intltest

Lines Matching defs:ec

477     UErrorCode ec = U_ZERO_ERROR;
482 DateFormatSymbols rootSyms(Locale(""), ec);
483 if (U_FAILURE(ec)) {
484 dataerrln("Unable to create DateFormatSymbols - %s", u_errorName(ec));
503 dateFormats[2] = new SimpleDateFormat(buf, Locale::getUS(), ec);
510 dateFormats[3] = new SimpleDateFormat(buf, Locale::getUS(), ec);
511 if(U_FAILURE(ec)){
512 errln(UnicodeString("Could not create SimpleDateFormat object for locale en_US. Error: " )+ UnicodeString(u_errorName(ec)));
1128 UErrorCode ec = U_ZERO_ERROR;
1129 SimpleDateFormat fmt("dd/MM/yy", Locale::getUK(), ec);
1130 if (U_FAILURE(ec)) {
1131 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1316 UErrorCode ec = U_ZERO_ERROR;
1341 cal = Calendar::createInstance(Locale::getUS(), ec);
1342 if (cal == NULL || U_FAILURE(ec)) {
1344 u_errorName(ec));
1370 when = cal->getTime(ec);
1371 if (U_FAILURE(ec)) {
1372 errln((UnicodeString)"FAIL: cal->getTime() failed with " + u_errorName(ec));
1478 UErrorCode ec = U_ZERO_ERROR;
1479 SimpleDateFormat f(UnicodeString("Yesterday"), ec);
1480 if (U_FAILURE(ec)) {
1481 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1493 UErrorCode ec = U_ZERO_ERROR;
1495 SimpleDateFormat fmt("EEEE, dd MMMM yyyy h:mm:ss a", Locale("el", "", ""), ec);
1496 if (U_FAILURE(ec)) {
1497 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1820 UErrorCode ec = U_ZERO_ERROR;
1821 SimpleDateFormat fmt("", loc, ec);
1822 SimpleDateFormat ref(data[i++], loc, ec);
1823 SimpleDateFormat gotfmt("G yyyy MM dd HH:mm:ss z", loc, ec);
1824 if (U_FAILURE(ec)) {
1825 dataerrln("FAIL: SimpleDateFormat constructor - %s", u_errorName(ec));
1835 ec = U_ZERO_ERROR;
1840 UDate got = fmt.parse(input, ec);
1842 if (U_FAILURE(ec)) {
1903 UErrorCode ec = U_ZERO_ERROR;
1905 SimpleDateFormat fmt("", loc, ec);
1906 SimpleDateFormat ref(data[i++], loc, ec);
1907 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
1908 if (U_FAILURE(ec)) {
1909 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
1927 UDate date = ref.parse(ctou(datestr), ec);
1928 if (!assertSuccess("parse", ec)) return;
1934 date = ref.parse(ctou(datestr), ec);
1935 if (!assertSuccess("parse", ec)) return;
1936 UDate parsedate = fmt.parse(ctou(string), ec);
1937 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
1948 UDate date = ref.parse(ctou(datestr), ec);
1949 if (!assertSuccess("parse", ec)) return;
1950 UDate parsedate = fmt.parse(ctou(string), ec);
1951 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
1966 UDate date = ref.parse(ctou(datestr), ec);
1967 if (!assertSuccess("parse", ec)) return;
1972 UDate parsedate = fmt.parse(string, ec);
1973 if (assertSuccess((UnicodeString)"\"" + currentPat + "\".parse(" + string + ")", ec)) {
2007 UErrorCode ec = U_ZERO_ERROR;
2009 SimpleDateFormat fmt("", loc, ec);
2010 SimpleDateFormat ref(data[i++], loc, ec);
2011 SimpleDateFormat univ("EE G yyyy MM dd HH:mm:ss.SSS z", loc, ec);
2012 if (U_FAILURE(ec)) {
2013 dataerrln("Fail construct SimpleDateFormat: %s", u_errorName(ec));
2028 UDate date = ref.parse(ctou(datestr), ec);
2029 if (!assertSuccess("parse", ec)) return;