Lines Matching refs:ec
723 UErrorCode ec=U_ZERO_ERROR;
726 int32_t preflightLen=uloc_getDisplayName(locale, displayLocale, NULL, 0, &ec);
728 if(ec==U_BUFFER_OVERFLOW_ERROR) {
729 ec=U_ZERO_ERROR;
731 len=uloc_getDisplayName(locale, displayLocale, result, LENGTHOF(result), &ec);
732 if(U_FAILURE(ec)) {
734 locale, displayLocale, u_errorName(ec));
760 len=uloc_getDisplayName(locale, displayLocale, result, i, &ec
761 if(ec==U_BUFFER_OVERFLOW_ERROR) {
762 ec=U_ZERO_ERROR;
764 if(U_FAILURE(ec)) {
765 log_err("using buffer of length %d returned error %s", i, u_errorName(ec));
1884 UErrorCode* ec) {
1888 return uloc_getName(localeID, result, resultCapacity, ec);
1890 return uloc_canonicalize(localeID, result, resultCapacity, ec);
2347 UErrorCode ec = U_ZERO_ERROR;
2359 NULL, 0, &ec);
2360 if (U_FAILURE(ec)) {
2361 log_data_err("udat_open failed.Error %s\n", u_errorName(ec));
2364 valid = udat_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2365 actual = udat_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2366 if (U_FAILURE(ec)) {
2383 &ec);
2384 if (U_FAILURE(ec)) {
2385 log_err("ucal_open failed with error: %s\n", u_errorName(ec));
2388 valid = ucal_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2389 actual = ucal_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2390 if (U_FAILURE(ec)) {
2407 &pe, &ec);
2408 if (U_FAILURE(ec)) {
2412 valid = unum_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2413 actual = unum_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2414 if (U_FAILURE(ec)) {
2433 &pe, &ec);
2434 if (U_FAILURE(ec)) {
2438 valid = umsg_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2439 actual = umsg_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2440 if (U_FAILURE(ec)) {
2475 &ec);
2476 if (U_FAILURE(ec)) {
2477 log_err("ubrk_open failed. Error: %s \n", u_errorName(ec));
2480 valid = ubrk_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2481 actual = ubrk_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2482 if (U_FAILURE(ec)) {
2496 obj = ucol_open(req, &ec);
2497 if (U_FAILURE(ec)) {
2498 log_err("ucol_open failed - %s\n", u_errorName(ec));
2501 valid = ucol_getLocaleByType(obj, ULOC_VALID_LOCALE, &ec);
2502 actual = ucol_getLocaleByType(obj, ULOC_ACTUAL_LOCALE, &ec);
2503 if (U_FAILURE(ec)) {
2515 UErrorCode ec = U_ZERO_ERROR;
2516 ULocaleData *uld = ulocdata_open("qqq",&ec);
2517 if (ec != U_USING_DEFAULT_WARNING) {
2518 log_err_status(ec, "Exemplar set for \"qqq\", expecting U_USING_DEFAULT_WARNING, but got %s\n",
2519 u_errorName(ec));
2521 uset_close(ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &ec));
2526 UErrorCode ec = U_USELESS_COLLATOR_ERROR;
2527 ulocdata_open(NULL, &ec);
2528 ulocdata_getExemplarSet(NULL, NULL, 0, ULOCDATA_ES_STANDARD, &ec);
2529 ulocdata_getDelimiter(NULL, ULOCDATA_DELIMITER_COUNT, NULL, -1, &ec);
2530 ulocdata_getMeasurementSystem(NULL, &ec);
2531 ulocdata_getPaperSize(NULL, NULL, NULL, &ec);
2532 if (ec != U_USELESS_COLLATOR_ERROR) {
2533 log_err("ulocdata API changed the error code to %s\n", u_errorName(ec));
2539 UErrorCode ec = U_ZERO_ERROR;
2540 ULocaleData *uld = ulocdata_open("en_US",&ec);
2541 uset_close(ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &ec));
2542 if (ec != U_USING_FALLBACK_WARNING) {
2543 log_err_status(ec, "Exemplar set for \"en_US\", expecting U_USING_FALLBACK_WARNING, but got %s\n",
2544 u_errorName(ec));
2547 ec = U_ZERO_ERROR;
2548 uld = ulocdata_open("en",&ec);
2549 uset_close(ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &ec));
2550 if (ec != U_ZERO_ERROR) {
2551 log_err_status(ec, "Exemplar set for \"en\", expecting U_ZERO_ERROR, but got %s\n",
2552 u_errorName(ec));