Home | History | Annotate | Download | only in cintltst

Lines Matching defs:ec

839     UErrorCode ec = U_ZERO_ERROR;
845 ctest_setTimeZone(NULL, &ec);
848 date = udat_open(UDAT_NONE, UDAT_SHORT, "en_US", NULL, 0, NULL, 0, &ec);
849 if (U_FAILURE(ec)) {
851 u_errorName(ec));
856 time = udat_open(UDAT_SHORT, UDAT_NONE, "en_US", NULL, 0, NULL, 0, &ec);
857 if (U_FAILURE(ec)) {
859 u_errorName(ec));
864 full = udat_open(UDAT_FULL, UDAT_FULL, "en_US", NULL, 0, NULL, 0, &ec);
865 if (U_FAILURE(ec)) {
867 u_errorName(ec));
872 cal = ucal_open(NULL, 0, "en_US", UCAL_GREGORIAN, &ec);
873 if (U_FAILURE(ec)) {
875 u_errorName(ec));
883 udat_parseCalendar(date, cal, buf, -1, &pos, &ec);
884 if (U_FAILURE(ec)) {
886 pos, u_errorName(ec));
891 len1 = udat_formatCalendar(date, cal, buf1, UPRV_LENGTHOF(buf1), NULL, &ec);
892 if (U_FAILURE(ec)) {
894 u_errorName(ec));
906 udat_parseCalendar(time, cal, buf, -1, &pos, &ec);
907 if (U_FAILURE(ec)) {
909 pos, u_errorName(ec));
914 len1 = udat_formatCalendar(time, cal, buf1, UPRV_LENGTHOF(buf1), NULL, &ec);
915 if (U_FAILURE(ec)) {
917 u_errorName(ec));
927 when = ucal_getMillis(cal, &ec);
928 if (U_FAILURE(ec)) {
929 log_err("FAIL: ucal_getMillis() failed with %s\n", u_errorName(ec));
932 udat_format(full, when, buf, sizeof(buf), NULL, &ec);
933 if (U_FAILURE(ec)) {
934 log_err("FAIL: udat_format() failed with %s\n", u_errorName(ec));
962 UErrorCode ec = U_ZERO_ERROR;
979 simpleDateFormat = udat_open(UDAT_FULL, UDAT_FULL, "en-GB", 0, 0, 0, 0, &ec);
980 if (U_FAILURE(ec)) {
981 log_data_err("udat_open(UDAT_FULL, UDAT_FULL, \"en-GB\", 0, 0, 0, 0, &ec) failed: %s - (Are you missing data?)\n", u_errorName(ec));
992 tempCal = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
993 ucal_setMillis(tempCal, 0, &ec);
994 ucal_setDateTime(tempCal, startCentury + twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
995 udat_set2DigitYearStart(simpleDateFormat, ucal_getMillis(tempCal, &ec), &ec);
997 calendar = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
998 ucal_setMillis(calendar, 0, &ec);
999 ucal_setDateTime(calendar, twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
1001 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
1004 result = ucal_get(calendar, UCAL_YEAR, &ec);
1005 if (U_FAILURE(ec)) {
1006 log_err("FAIL: ucal_get(UCAL_YEAR) failed with %s\n", u_errorName(ec));
1017 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
1020 result = ucal_get(calendar, UCAL_YEAR, &ec);
1021 if (U_FAILURE(ec)) {
1022 log_err("FAIL: ucal_get(UCAL_YEAR) failed with %s\n", u_errorName(ec));
1225 UErrorCode* ec) {
1226 int32_t len = udat_format(fmt, date, buf, buflen, 0, ec);
1227 if (!assertSuccess("udat_format", ec)) return FALSE;
1246 UErrorCode* ec) {
1253 _aux1ExtremeDates(fmt, mid, buf, buflen, cbuf, ec) &&
1254 ec) &&
1255 _aux2ExtremeDates(fmt, mid, large, buf, buflen, cbuf, count+1, ec);
1274 UErrorCode ec;
1283 ec = U_ZERO_ERROR;
1285 0, 0, 0, 0, &ec);
1286 if (U_FAILURE(ec)) {
1287 log_data_err("FAIL: udat_open (%s) (Are you missing data?)\n", u_errorName(ec));
1291 _aux2ExtremeDates(fmt, small, large, buf, LEN(buf), cbuf, 0, &ec);