• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/test/cintltst/

Lines Matching defs:ec

801     UErrorCode ec = U_ZERO_ERROR;
803 ctest_setTimeZone(NULL, &ec);
806 date = udat_open(UDAT_NONE, UDAT_SHORT, "en_US", NULL, 0, NULL, 0, &ec);
807 if (U_FAILURE(ec)) {
809 u_errorName(ec));
814 time = udat_open(UDAT_SHORT, UDAT_NONE, "en_US", NULL, 0, NULL, 0, &ec);
815 if (U_FAILURE(ec)) {
817 u_errorName(ec));
822 full = udat_open(UDAT_FULL, UDAT_FULL, "en_US", NULL, 0, NULL, 0, &ec);
823 if (U_FAILURE(ec)) {
825 u_errorName(ec));
830 cal = ucal_open(NULL, 0, "en_US", UCAL_GREGORIAN, &ec);
831 if (U_FAILURE(ec)) {
833 u_errorName(ec));
841 udat_parseCalendar(date, cal, buf, -1, &pos, &ec);
842 if (U_FAILURE(ec)) {
844 pos, u_errorName(ec));
851 udat_parseCalendar(time, cal, buf, -1, &pos, &ec);
852 if (U_FAILURE(ec)) {
854 pos, u_errorName(ec));
859 when = ucal_getMillis(cal, &ec);
860 if (U_FAILURE(ec)) {
861 log_err("FAIL: ucal_getMillis() failed with %s\n", u_errorName(ec));
864 udat_format(full, when, buf, sizeof(buf), NULL, &ec);
865 if (U_FAILURE(ec)) {
866 log_err("FAIL: udat_format() failed with %s\n", u_errorName(ec));
894 UErrorCode ec = U_ZERO_ERROR;
911 simpleDateFormat = udat_open(UDAT_FULL, UDAT_FULL, "en-GB", 0, 0, 0, 0, &ec);
912 if (U_FAILURE(ec)) {
913 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));
924 tempCal = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
925 ucal_setMillis(tempCal, 0, &ec);
926 ucal_setDateTime(tempCal, startCentury + twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
927 udat_set2DigitYearStart(simpleDateFormat, ucal_getMillis(tempCal, &ec), &ec);
929 calendar = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &ec);
930 ucal_setMillis(calendar, 0, &ec);
931 ucal_setDateTime(calendar, twoDigitCenturyStart, UCAL_JANUARY, 1, 0, 0, 0, &ec);
933 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
936 result = ucal_get(calendar, UCAL_YEAR, &ec);
937 if (U_FAILURE(ec)) {
938 log_err("FAIL: ucal_get(UCAL_YEAR) failed with %s\n", u_errorName(ec));
949 udat_parseCalendar(simpleDateFormat, calendar, text, u_strlen(text), &parsePos, &ec);
952 result = ucal_get(calendar, UCAL_YEAR, &ec);
953 if (U_FAILURE(ec)) {
954 log_err("FAIL: ucal_get(UCAL_YEAR) failed with %s\n", u_errorName(ec));
1156 UErrorCode* ec) {
1157 int32_t len = udat_format(fmt, date, buf, buflen, 0, ec);
1158 if (!assertSuccess("udat_format", ec)) return FALSE;
1177 UErrorCode* ec) {
1184 _aux1ExtremeDates(fmt, mid, buf, buflen, cbuf, ec) &&
1185 _aux2ExtremeDates(fmt, small, mid, buf, buflen, cbuf, count+1, ec) &&
1186 _aux2ExtremeDates(fmt, mid, large, buf, buflen, cbuf, count+1, ec);
1205 UErrorCode ec;
1214 ec = U_ZERO_ERROR;
1216 0, 0, 0, 0, &ec);
1217 if (U_FAILURE(ec)) {
1218 log_data_err("FAIL: udat_open (%s) (Are you missing data?)\n", u_errorName(ec));
1222 _aux2ExtremeDates(fmt, small, large, buf, LEN(buf), cbuf, 0, &ec);