Home | History | Annotate | Download | only in cintltst

Lines Matching defs:errorCode

1500     UErrorCode errorCode = U_ZERO_ERROR;
1503 errorCode = U_ZERO_ERROR;
1504 cal = ucal_open(utc, -1, "", UCAL_GREGORIAN, &errorCode);
1505 if(U_FAILURE(errorCode)) {
1506 log_data_err("ucal_open(UTC) failed: %s - (Are you missing data?)\n", u_errorName(errorCode));
1509 ucal_setGregorianChange(cal, -365 * (dayMillis * (UDate)1), &errorCode);
1510 if(U_FAILURE(errorCode)) {
1511 log_err("ucal_setGregorianChange(1969) failed: %s\n", u_errorName(errorCode));
1513 date = ucal_getGregorianChange(cal, &errorCode);
1514 if(U_FAILURE(errorCode) || date != -365 * (dayMillis * (UDate)1)) {
1515 log_err("ucal_getGregorianChange() failed: %s, date = %f\n", u_errorName(errorCode), date);
1521 errorCode = U_ZERO_ERROR;
1522 cal = ucal_open(utc, -1, "th@calendar=buddhist", UCAL_TRADITIONAL, &errorCode);
1523 if(U_FAILURE(errorCode)) {
1524 log_err("ucal_open(UTC, non-Gregorian) failed: %s\n", u_errorName(errorCode));
1527 ucal_setGregorianChange(cal, -730 * (dayMillis * (UDate)1), &errorCode);
1528 if(errorCode != U_UNSUPPORTED_ERROR) {
1530 u_errorName(errorCode));
1532 errorCode = U_ZERO_ERROR;
1533 date = ucal_getGregorianChange(cal, &errorCode);
1534 if(errorCode != U_UNSUPPORTED_ERROR) {
1536 u_errorName(errorCode));