Home | History | Annotate | Download | only in cintltst

Lines Matching refs:errorCode

75     UErrorCode errorCode = U_ZERO_ERROR;
84 errorCode = U_ZERO_ERROR;
87 subBundle = ures_getNextResource(currentBundle, NULL, &errorCode);
88 if (U_FAILURE(errorCode)) {
89 log_err("Can't open a resource for lnocale %s. Error: %s\n", locale, u_errorName(errorCode));
95 subRootBundle = ures_getByKey(root, subBundleKey, NULL, &errorCode);
96 if (U_FAILURE(errorCode)) {
121 const int32_t *subRootBundleArr = ures_getIntVector(subRootBundle, &minSize, &errorCode);
122 const int32_t *subBundleArr = ures_getIntVector(subBundle, &subBundleSize, &errorCode);
157 UResourceBundle *subSubBundle = ures_getByIndex(subBundle, 0, NULL, &errorCode);
158 UResourceBundle *subSubRootBundle = ures_getByIndex(subRootBundle, 0, NULL, &errorCode);
160 if (U_SUCCESS(errorCode)
198 const UChar *rootStr = ures_getStringByIndex(subRootBundle,idx,&rootStrLen,&errorCode);
199 const UChar *localeStr = ures_getStringByIndex(subBundle,idx,&localeStrLen,&errorCode);
200 if (rootStr && localeStr && U_SUCCESS(errorCode)) {
209 errorCode = U_ZERO_ERROR;
210 arr = ures_getByIndex(subBundle,idx,NULL,&errorCode);
211 if (U_FAILURE(errorCode)) {
229 localeStr = ures_getStringByIndex(arr,0,&localeStrLen,&errorCode);
231 if (U_FAILURE(errorCode)) {
331 const UChar *string = ures_getString(subBundle, &len, &errorCode);
332 if (U_FAILURE(errorCode) || string == NULL) {
391 else if (strcmp(locale, "root") != 0 && errorCode == U_ZERO_ERROR) {
393 const UChar *rootString = ures_getString(subRootBundle, &len, &errorCode);
394 if (U_FAILURE(errorCode) || rootString == NULL) {
502 UErrorCode errorCode = U_ZERO_ERROR;
510 errorCode=U_ZERO_ERROR;
520 root = ures_openDirect(NULL, locName, &errorCode);
521 if(U_FAILURE(errorCode)) {
530 root = ures_openDirect(loadTestData(&errorCode), "structLocale", &errorCode);
531 if(U_FAILURE(errorCode)) {
536 errorCode=U_ZERO_ERROR;
538 currentLocale = ures_open(NULL, currLoc, &errorCode);
539 if(errorCode != U_ZERO_ERROR) {
540 if(U_SUCCESS(errorCode)) {
544 uloc_getAvailable(locIndex), u_errorName(errorCode));
547 u_errorName(errorCode),
553 ures_getStringByKey(currentLocale, "Version", NULL, &errorCode);
554 if(errorCode != U_ZERO_ERROR) {
558 else if (ures_getStringByKey(currentLocale, "Version", NULL, &errorCode)[0] == (UChar)(0x78)) {
562 resolvedLoc = ures_getLocaleByType(currentLocale, ULOC_ACTUAL_LOCALE, &errorCode);
589 UErrorCode errorCode = U_ZERO_ERROR;
599 const UChar *fromBundleStr = ures_getStringByIndex(fromArray, idx, NULL, &errorCode);
600 const UChar *toBundleStr = ures_getStringByIndex(toArray, idx, NULL, &errorCode);
616 UErrorCode errorCode = U_ZERO_ERROR;
618 UResourceBundle *fromLocaleBund = ures_open(NULL, fromLocale, &errorCode);
619 UResourceBundle *toLocaleBund = ures_open(NULL, toLocale, &errorCode);
622 if(U_FAILURE(errorCode)) {
623 log_err("Can't open resource bundle %s or %s - %s\n", fromLocale, toLocale, u_errorName(errorCode));
626 fromCalendar = ures_getByKey(fromLocaleBund, "calendar", NULL, &errorCode);
627 fromGregorian = ures_getByKeyWithFallback(fromCalendar, "gregorian", NULL, &errorCode);
629 toCalendar = ures_getByKey(toLocaleBund, "calendar", NULL, &errorCode);
630 toGregorian = ures_getByKeyWithFallback(toCalendar, "gregorian", NULL, &errorCode);
632 fromArray = ures_getByKey(fromLocaleBund, "CurrencyElements", NULL, &errorCode);
633 toArray = ures_getByKey(toLocaleBund, "CurrencyElements", NULL, &errorCode);
642 fromArray = ures_getByKey(fromLocaleBund, "NumberPatterns", NULL, &errorCode);
643 toArray = ures_getByKey(toLocaleBund, "NumberPatterns", NULL, &errorCode);
653 fromArray = ures_getByKey(fromLocaleBund, "DateTimePatterns", NULL, &errorCode);
654 toArray = ures_getByKey(toLocaleBund, "DateTimePatterns", NULL, &errorCode);
661 fromArray = ures_getByKey(fromLocaleBund, "NumberElements", NULL, &errorCode);
662 toArray = ures_getByKey(toLocaleBund, "NumberElements", NULL, &errorCode);
692 UErrorCode errorCode = U_ZERO_ERROR;
697 errorCode=U_ZERO_ERROR;
698 fromCountryLen = uloc_getCountry(fromLocale, fromCountry, ULOC_FULLNAME_CAPACITY, &errorCode);
703 fromVariantLen = uloc_getVariant(fromLocale, fromVariant, ULOC_FULLNAME_CAPACITY, &errorCode);
714 toCountryLen = uloc_getCountry(toLocale, toCountry, ULOC_FULLNAME_CAPACITY, &errorCode);
715 if(U_FAILURE(errorCode)) {
716 log_err("Unknown failure fromLocale=%s toLocale=%s errorCode=%s\n",
717 fromLocale, toLocale, u_errorName(errorCode));
725 toVariantLen = uloc_getVariant(toLocale, toVariant, ULOC_FULLNAME_CAPACITY, &errorCode);
744 errorCode = U_ZERO_ERROR;
750 exemplarSet = createFlattenSet(mergedExemplarSet, &errorCode);
751 if (U_FAILURE(errorCode)) {
752 log_err("%s: error createFlattenSet returned %s\n", currLoc, u_errorName(errorCode));
885 UErrorCode errorCode = U_ZERO_ERROR;
897 root = ures_openDirect(NULL, "root", &errorCode);
898 if(U_FAILURE(errorCode)) {
904 errorCode=U_ZERO_ERROR;
906 currentLocale = ures_open(NULL, currLoc, &errorCode);
907 if(errorCode != U_ZERO_ERROR) {
908 if(U_SUCCESS(errorCode)) {
915 u_errorName(errorCode),
941 log_err("error ulocdata_getExemplarSet (main) for locale %s returned %s\n", currLoc, u_errorName(errorCode));
945 log_err("error ulocdata_open for locale %s returned %s\n", currLoc, u_errorName(errorCode));
959 langSize = uloc_getDisplayLanguage(currLoc, currLoc, langBuffer, sizeof(langBuffer)/sizeof(langBuffer[0]), &errorCode);
960 if (U_FAILURE(errorCode)) {
961 log_err("error uloc_getDisplayLanguage returned %s\n", u_errorName(errorCode));
970 langSize = uloc_getDisplayCountry(currLoc, currLoc, langBuffer, sizeof(langBuffer)/sizeof(langBuffer[0]), &errorCode);
971 if (U_FAILURE(errorCode)) {
972 log_err("error uloc_getDisplayCountry returned %s\n", u_errorName(errorCode));
975 UResourceBundle* cal = ures_getByKey(currentLocale, "calendar", NULL, &errorCode);
976 UResourceBundle* greg = ures_getByKeyWithFallback(cal, "gregorian", NULL, &errorCode);
977 UResourceBundle* names = ures_getByKeyWithFallback(greg, "dayNames", NULL, &errorCode);
978 UResourceBundle* format = ures_getByKeyWithFallback(names, "format", NULL, &errorCode);
979 resArray = ures_getByKeyWithFallback(format, "wide", NULL, &errorCode);
981 if (U_FAILURE(errorCode)) {
982 log_err("error ures_getByKey returned %s\n", u_errorName(errorCode));
997 const UChar *fromBundleStr = ures_getStringByIndex(resArray, idx, &langSize, &errorCode);
998 if (U_FAILURE(errorCode)) {
999 log_err("error ures_getStringByIndex(%d) returned %s\n", idx, u_errorName(errorCode));
1012 names = ures_getByKeyWithFallback(greg, "monthNames", NULL, &errorCode);
1013 format = ures_getByKeyWithFallback(names,"format", NULL, &errorCode);
1014 resArray = ures_getByKeyWithFallback(format, "wide", NULL, &errorCode);
1015 if (U_FAILURE(errorCode)) {
1016 log_err("error ures_getByKey returned %s\n", u_errorName(errorCode));
1026 const UChar *fromBundleStr = ures_getStringByIndex(resArray, idx, &langSize, &errorCode);
1027 if (U_FAILURE(errorCode)) {
1028 log_err("error ures_getStringByIndex(%d) returned %s\n", idx, u_errorName(errorCode));
1043 errorCode = U_ZERO_ERROR;
1044 numScripts = uscript_getCode(currLoc, scripts, sizeof(scripts)/sizeof(scripts[0]), &errorCode);
1056 ULocaleData *uld = ulocdata_open(currLoc,&errorCode);
1057 USet *exemplarSet = ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &errorCode);
1067 ulocdata_getPaperSize(currLoc, &height, &width, &errorCode);
1068 if(U_FAILURE(errorCode)){
1069 log_err("ulocdata_getPaperSize failed for locale %s with error: %s \n", currLoc, u_errorName(errorCode));
1081 uloc_addLikelySubtags(currLoc, fullLoc, ULOC_FULLNAME_CAPACITY, &errorCode);
1083 errorCode = U_ZERO_ERROR;
1084 measurementSystem = ulocdata_getMeasurementSystem(currLoc, &errorCode);
1085 if (U_FAILURE(errorCode)) {
1086 log_err("ulocdata_getMeasurementSystem failed for locale %s with error: %s \n", currLoc, u_errorName(errorCode));
1101 errorCode = U_ZERO_ERROR;
1102 ulocdata_getPaperSize(currLoc, &height, &width, &errorCode);
1103 if (U_FAILURE(errorCode)) {
1104 log_err("ulocdata_getPaperSize failed for locale %s with error: %s \n", currLoc, u_errorName(errorCode));
1379 UErrorCode errorCode = U_ZERO_ERROR;
1381 UEnumeration *en = ucurr_openISOCurrencies(UCURR_ALL, &errorCode);
1384 UResourceBundle *currencies = ures_openDirect(loadTestData(&errorCode), "structLocale", &errorCode);
1385 if(U_FAILURE(errorCode)) {
1389 currencies = ures_getByKey(currencies, "Currencies", currencies, &errorCode);
1390 currencyCount = uenum_count(en, &errorCode);
1396 while ((isoCode = uenum_next(en, NULL, &errorCode)) != NULL && ures_hasNext(currencies)) {
1397 subBundle = ures_getNextResource(currencies, NULL, &errorCode);
1415 UErrorCode errorCode = U_ZERO_ERROR;
1430 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1435 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1440 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == TRUE) {
1445 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1452 if (ucurr_isAvailable(isoCode, date1970, U_DATE_MAX, &errorCode) == FALSE) {
1456 if (ucurr_isAvailable(isoCode, date1975, U_DATE_MAX, &errorCode) == FALSE) {
1460 if (ucurr_isAvailable(isoCode, date1981, U_DATE_MAX, &errorCode) == TRUE) {
1465 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1970, &errorCode) == TRUE) {
1469 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1975, &errorCode) == FALSE) {
1473 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1981, &errorCode) == FALSE) {
1478 if (ucurr_isAvailable(isoCode, date1975, date1978, &errorCode) == FALSE) {
1482 if (ucurr_isAvailable(isoCode, date1970, date1975, &errorCode) == FALSE) {
1486 if (ucurr_isAvailable(isoCode, date1975, date1981, &errorCode) == FALSE) {
1490 errorCode) == FALSE) {
1494 if (ucurr_isAvailable(isoCode, date1981, date1992, &errorCode) == TRUE) {
1498 if (ucurr_isAvailable(isoCode, date1950, date1970, &errorCode) == TRUE) {
1503 if (ucurr_isAvailable(isoCode, date1975, date1970, &errorCode) == TRUE) {
1505 } else if (errorCode != U_ILLEGAL_ARGUMENT_ERROR) {