Home | History | Annotate | Download | only in cintltst

Lines Matching defs: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);
592 UErrorCode errorCode = U_ZERO_ERROR;
602 const UChar *fromBundleStr = ures_getStringByIndex(fromArray, idx, NULL, &errorCode);
603 const UChar *toBundleStr = ures_getStringByIndex(toArray, idx, NULL, &errorCode);
619 UErrorCode errorCode = U_ZERO_ERROR;
621 UResourceBundle *fromLocaleBund = ures_open(NULL, fromLocale, &errorCode);
622 UResourceBundle *toLocaleBund = ures_open(NULL, toLocale, &errorCode);
625 if(U_FAILURE(errorCode)) {
626 log_err("Can't open resource bundle %s or %s - %s\n", fromLocale, toLocale, u_errorName(errorCode));
629 fromCalendar = ures_getByKey(fromLocaleBund, "calendar", NULL, &errorCode);
630 fromGregorian = ures_getByKeyWithFallback(fromCalendar, "gregorian", NULL, &errorCode);
632 toCalendar = ures_getByKey(toLocaleBund, "calendar", NULL, &errorCode);
633 toGregorian = ures_getByKeyWithFallback(toCalendar, "gregorian", NULL, &errorCode);
635 fromArray = ures_getByKey(fromLocaleBund, "CurrencyElements", NULL, &errorCode);
636 toArray = ures_getByKey(toLocaleBund, "CurrencyElements", NULL, &errorCode);
645 fromArray = ures_getByKey(fromLocaleBund, "NumberPatterns", NULL, &errorCode);
646 toArray = ures_getByKey(toLocaleBund, "NumberPatterns", NULL, &errorCode);
656 fromArray = ures_getByKey(fromLocaleBund, "DateTimePatterns", NULL, &errorCode);
657 toArray = ures_getByKey(toLocaleBund, "DateTimePatterns", NULL, &errorCode);
664 fromArray = ures_getByKey(fromLocaleBund, "NumberElements", NULL, &errorCode);
665 toArray = ures_getByKey(toLocaleBund, "NumberElements", NULL, &errorCode);
695 UErrorCode errorCode = U_ZERO_ERROR;
700 errorCode=U_ZERO_ERROR;
701 fromCountryLen = uloc_getCountry(fromLocale, fromCountry, ULOC_FULLNAME_CAPACITY, &errorCode);
706 fromVariantLen = uloc_getVariant(fromLocale, fromVariant, ULOC_FULLNAME_CAPACITY, &errorCode);
717 toCountryLen = uloc_getCountry(toLocale, toCountry, ULOC_FULLNAME_CAPACITY, &errorCode);
718 if(U_FAILURE(errorCode)) {
719 log_err("Unknown failure fromLocale=%s toLocale=%s errorCode=%s\n",
720 fromLocale, toLocale, u_errorName(errorCode));
728 toVariantLen = uloc_getVariant(toLocale, toVariant, ULOC_FULLNAME_CAPACITY, &errorCode);
747 UErrorCode errorCode = U_ZERO_ERROR;
753 exemplarSet = createFlattenSet(mergedExemplarSet, &errorCode);
754 if (U_FAILURE(errorCode)) {
755 log_err("%s: error createFlattenSet returned %s\n", currLoc, u_errorName(errorCode));
888 UErrorCode errorCode = U_ZERO_ERROR;
900 root = ures_openDirect(NULL, "root", &errorCode);
901 if(U_FAILURE(errorCode)) {
907 errorCode=U_ZERO_ERROR;
909 currentLocale = ures_open(NULL, currLoc, &errorCode);
910 if(errorCode != U_ZERO_ERROR) {
911 if(U_SUCCESS(errorCode)) {
918 u_errorName(errorCode),
944 log_err("error ulocdata_getExemplarSet (main) for locale %s returned %s\n", currLoc, u_errorName(errorCode));
948 log_err("error ulocdata_open for locale %s returned %s\n", currLoc, u_errorName(errorCode));
962 langSize = uloc_getDisplayLanguage(currLoc, currLoc, langBuffer, sizeof(langBuffer)/sizeof(langBuffer[0]), &errorCode);
963 if (U_FAILURE(errorCode)) {
964 log_err("error uloc_getDisplayLanguage returned %s\n", u_errorName(errorCode));
973 langSize = uloc_getDisplayCountry(currLoc, currLoc, langBuffer, sizeof(langBuffer)/sizeof(langBuffer[0]), &errorCode);
974 if (U_FAILURE(errorCode)) {
975 log_err("error uloc_getDisplayCountry returned %s\n", u_errorName(errorCode));
978 UResourceBundle* cal = ures_getByKey(currentLocale, "calendar", NULL, &errorCode);
979 UResourceBundle* greg = ures_getByKeyWithFallback(cal, "gregorian", NULL, &errorCode);
980 UResourceBundle* names = ures_getByKeyWithFallback(greg, "dayNames", NULL, &errorCode);
981 UResourceBundle* format = ures_getByKeyWithFallback(names, "format", NULL, &errorCode);
982 resArray = ures_getByKeyWithFallback(format, "wide", NULL, &errorCode);
984 if (U_FAILURE(errorCode)) {
985 log_err("error ures_getByKey returned %s\n", u_errorName(errorCode));
996 const UChar *fromBundleStr = ures_getStringByIndex(resArray, idx, &langSize, &errorCode);
997 if (U_FAILURE(errorCode)) {
998 log_err("error ures_getStringByIndex(%d) returned %s\n", idx, u_errorName(errorCode));
1011 names = ures_getByKeyWithFallback(greg, "monthNames", NULL, &errorCode);
1012 format = ures_getByKeyWithFallback(names,"format", NULL, &errorCode);
1013 resArray = ures_getByKeyWithFallback(format, "wide", NULL, &errorCode);
1014 if (U_FAILURE(errorCode)) {
1015 log_err("error ures_getByKey returned %s\n", u_errorName(errorCode));
1025 const UChar *fromBundleStr = ures_getStringByIndex(resArray, idx, &langSize, &errorCode);
1026 if (U_FAILURE(errorCode)) {
1027 log_err("error ures_getStringByIndex(%d) returned %s\n", idx, u_errorName(errorCode));
1042 errorCode = U_ZERO_ERROR;
1043 numScripts = uscript_getCode(currLoc, scripts, sizeof(scripts)/sizeof(scripts[0]), &errorCode);
1052 ULocaleData *uld = ulocdata_open(currLoc,&errorCode);
1053 USet *exemplarSet = ulocdata_getExemplarSet(uld, NULL, 0, ULOCDATA_ES_STANDARD, &errorCode);
1063 ulocdata_getPaperSize(currLoc, &height, &width, &errorCode);
1064 if(U_FAILURE(errorCode)){
1065 log_err("ulocdata_getPaperSize failed for locale %s with error: %s \n", currLoc, u_errorName(errorCode));
1077 uloc_addLikelySubtags(currLoc, fullLoc, ULOC_FULLNAME_CAPACITY, &errorCode);
1079 errorCode = U_ZERO_ERROR;
1080 measurementSystem = ulocdata_getMeasurementSystem(currLoc, &errorCode);
1081 if (U_FAILURE(errorCode)) {
1082 log_err("ulocdata_getMeasurementSystem failed for locale %s with error: %s \n", currLoc, u_errorName(errorCode));
1093 errorCode = U_ZERO_ERROR;
1094 ulocdata_getPaperSize(currLoc, &height, &width, &errorCode);
1095 if (U_FAILURE(errorCode)) {
1096 errorCode));
1368 UErrorCode errorCode = U_ZERO_ERROR;
1370 UEnumeration *en = ucurr_openISOCurrencies(UCURR_ALL, &errorCode);
1373 UResourceBundle *currencies = ures_openDirect(loadTestData(&errorCode), "structLocale", &errorCode);
1374 if(U_FAILURE(errorCode)) {
1378 currencies = ures_getByKey(currencies, "Currencies", currencies, &errorCode);
1379 currencyCount = uenum_count(en, &errorCode);
1385 while ((isoCode = uenum_next(en, NULL, &errorCode)) != NULL && ures_hasNext(currencies)) {
1386 subBundle = ures_getNextResource(currencies, NULL, &errorCode);
1404 UErrorCode errorCode = U_ZERO_ERROR;
1419 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1424 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1429 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == TRUE) {
1434 if (ucurr_isAvailable(isoCode, U_DATE_MIN, U_DATE_MAX, &errorCode) == FALSE) {
1441 if (ucurr_isAvailable(isoCode, date1970, U_DATE_MAX, &errorCode) == FALSE) {
1445 if (ucurr_isAvailable(isoCode, date1975, U_DATE_MAX, &errorCode) == FALSE) {
1449 if (ucurr_isAvailable(isoCode, date1981, U_DATE_MAX, &errorCode) == TRUE) {
1454 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1970, &errorCode) == TRUE) {
1458 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1975, &errorCode) == FALSE) {
1462 if (ucurr_isAvailable(isoCode, U_DATE_MIN, date1981, &errorCode) == FALSE) {
1467 if (ucurr_isAvailable(isoCode, date1975, date1978, &errorCode) == FALSE) {
1471 if (ucurr_isAvailable(isoCode, date1970, date1975, &errorCode) == FALSE) {
1475 if (ucurr_isAvailable(isoCode, date1975, date1981, &errorCode) == FALSE) {
1479 if (ucurr_isAvailable(isoCode, date1970, date1981, &errorCode) == FALSE) {
1483 if (ucurr_isAvailable(isoCode, date1981, date1992, &errorCode) == TRUE) {
1487 if (ucurr_isAvailable(isoCode, date1950, date1970, &errorCode) == TRUE) {
1492 if (ucurr_isAvailable(isoCode, date1975, date1970, &errorCode) == TRUE) {
1494 } else if (errorCode != U_ILLEGAL_ARGUMENT_ERROR) {