Home
last modified time | relevance | path

Searched refs:localStatus (Results 1 – 25 of 31) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dulocdata.cpp113 UErrorCode localStatus = U_ZERO_ERROR; in ulocdata_getExemplarSet() local
118 exemplarChars = ures_getStringByKey(uld->bundle, exemplarSetTypes[extype], &len, &localStatus); in ulocdata_getExemplarSet()
119 if ( (localStatus == U_USING_DEFAULT_WARNING) && uld->noSubstitute ) { in ulocdata_getExemplarSet()
120 localStatus = U_MISSING_RESOURCE_ERROR; in ulocdata_getExemplarSet()
123 if (localStatus != U_ZERO_ERROR) { in ulocdata_getExemplarSet()
124 *status = localStatus; in ulocdata_getExemplarSet()
155 UErrorCode localStatus = U_ZERO_ERROR; in ulocdata_getDelimiter() local
160 delimiterBundle = ures_getByKey(uld->bundle, "delimiters", NULL, &localStatus); in ulocdata_getDelimiter()
162 if ( (localStatus == U_USING_DEFAULT_WARNING) && uld->noSubstitute ) { in ulocdata_getDelimiter()
163 localStatus = U_MISSING_RESOURCE_ERROR; in ulocdata_getDelimiter()
[all …]
Dnumber_multiplier.cpp43 UErrorCode localStatus = U_ZERO_ERROR; in Scale() local
44 fArbitrary = new DecNum(*other.fArbitrary, localStatus); in Scale()
51 UErrorCode localStatus = U_ZERO_ERROR; in operator =() local
52 fArbitrary = new DecNum(*other.fArbitrary, localStatus); in operator =()
130 UErrorCode localStatus = U_ZERO_ERROR; in applyTo() local
131 quantity.multiplyBy(*fArbitrary, localStatus); in applyTo()
138 UErrorCode localStatus = U_ZERO_ERROR; in applyReciprocalTo() local
139 quantity.divideBy(*fArbitrary, localStatus); in applyReciprocalTo()
Ddcfmtsym.cpp476 UErrorCode localStatus = U_ZERO_ERROR; in initialize() local
477 uccLen = ucurr_forLocale(locName, ucc, uccLen, &localStatus); in initialize()
480 if(U_SUCCESS(localStatus) && uccLen > 0) { in initialize()
484 … LocalUResourceBundlePointer currencyResource(ures_open(U_ICUDATA_CURR, locStr, &localStatus)); in initialize()
486 … ures_getByKeyWithFallback(currencyResource.getAlias(), "Currencies", NULL, &localStatus)); in initialize()
487 ures_getByKeyWithFallback(currency.getAlias(), cc, currency.getAlias(), &localStatus); in initialize()
488 …if(U_SUCCESS(localStatus) && ures_getSize(currency.getAlias())>2) { // the length is 3 if more dat… in initialize()
489 ures_getByIndex(currency.getAlias(), 2, currency.getAlias(), &localStatus); in initialize()
492 … ures_getStringByIndex(currency.getAlias(), (int32_t)0, &currPatternLen, &localStatus); in initialize()
494 ures_getUnicodeStringByIndex(currency.getAlias(), (int32_t)1, &localStatus); in initialize()
[all …]
Dnumber_utils.cpp36 UErrorCode& localStatus) { in doGetPattern() argument
46 return ures_getStringByKeyWithFallback(res, key.data(), nullptr, &localStatus); in doGetPattern()
79 UErrorCode localStatus = U_ZERO_ERROR; in getPatternForStyle() local
81 pattern = doGetPattern(res.getAlias(), nsName, patternKey, status, localStatus); in getPatternForStyle()
85 if (U_FAILURE(localStatus) && uprv_strcmp("latn", nsName) != 0) { in getPatternForStyle()
86 localStatus = U_ZERO_ERROR; in getPatternForStyle()
87 pattern = doGetPattern(res.getAlias(), "latn", patternKey, status, localStatus); in getPatternForStyle()
Dnumber_compact.cpp73 UErrorCode localStatus = U_ZERO_ERROR; in populate() local
74 ures_getAllItemsWithFallback(rb.getAlias(), resourceKey.data(), sink, localStatus); in populate()
77 localStatus = U_ZERO_ERROR; in populate()
78 ures_getAllItemsWithFallback(rb.getAlias(), resourceKey.data(), sink, localStatus); in populate()
82 localStatus = U_ZERO_ERROR; in populate()
83 ures_getAllItemsWithFallback(rb.getAlias(), resourceKey.data(), sink, localStatus); in populate()
87 localStatus = U_ZERO_ERROR; in populate()
88 ures_getAllItemsWithFallback(rb.getAlias(), resourceKey.data(), sink, localStatus); in populate()
Dnumber_mapper.cpp412 ErrorCode localStatus; in positiveHasPlusSign() local
413 return AffixUtils::containsType(posPrefix, TYPE_PLUS_SIGN, localStatus) || in positiveHasPlusSign()
414 AffixUtils::containsType(posSuffix, TYPE_PLUS_SIGN, localStatus); in positiveHasPlusSign()
423 ErrorCode localStatus; in negativeHasMinusSign() local
424 return AffixUtils::containsType(negPrefix, TYPE_MINUS_SIGN, localStatus) || in negativeHasMinusSign()
425 AffixUtils::containsType(negSuffix, TYPE_MINUS_SIGN, localStatus); in negativeHasMinusSign()
429 ErrorCode localStatus; in hasCurrencySign() local
430 return AffixUtils::hasCurrencySymbols(posPrefix, localStatus) || in hasCurrencySign()
431 AffixUtils::hasCurrencySymbols(posSuffix, localStatus) || in hasCurrencySign()
432 AffixUtils::hasCurrencySymbols(negPrefix, localStatus) || in hasCurrencySign()
[all …]
Dnumber_grouping.cpp20 UErrorCode localStatus = U_ZERO_ERROR; in getMinGroupingForLocale() local
21 LocalUResourceBundlePointer bundle(ures_open(NULL, locale.getName(), &localStatus)); in getMinGroupingForLocale()
27 &localStatus); in getMinGroupingForLocale()
29 if (U_FAILURE(localStatus) || resultLen != 1) { in getMinGroupingForLocale()
Ddecimfmt.cpp433 UErrorCode localStatus = U_ZERO_ERROR; in format() local
434 FormattedNumber output = fields->formatter->formatDouble(number, localStatus); in format()
435 fieldPositionHelper(output, pos, appendTo.length(), localStatus); in format()
485 UErrorCode localStatus = U_ZERO_ERROR; in format() local
486 FormattedNumber output = fields->formatter->formatInt(number, localStatus); in format()
487 fieldPositionHelper(output, pos, appendTo.length(), localStatus); in format()
631 ErrorCode localStatus; in getPositivePrefix() local
632 fields->formatter->getAffixImpl(true, false, result, localStatus); in getPositivePrefix()
643 ErrorCode localStatus; in getNegativePrefix() local
644 fields->formatter->getAffixImpl(true, true, result, localStatus); in getNegativePrefix()
[all …]
Dnumsys.cpp139 UErrorCode localStatus = U_ZERO_ERROR; in createInstance() local
140 LocalUResourceBundlePointer resource(ures_open(nullptr, inLocale.getName(), &localStatus)); in createInstance()
141 …nter numberElementsRes(ures_getByKey(resource.getAlias(), gNumberElements, nullptr, &localStatus)); in createInstance()
143 if (localStatus == U_MEMORY_ALLOCATION_ERROR) { in createInstance()
148 localStatus = U_ZERO_ERROR; in createInstance()
150 …Name = ures_getStringByKeyWithFallback(numberElementsRes.getAlias(), buffer, &count, &localStatus); in createInstance()
152 if (localStatus == U_MEMORY_ALLOCATION_ERROR) { in createInstance()
Dnumber_formatimpl.cpp46 UErrorCode localStatus = status; in getCurrencyFormatInfo() local
47 LocalUResourceBundlePointer bundle(ures_open(U_ICUDATA_CURR, locale.getName(), &localStatus)); in getCurrencyFormatInfo()
48 ures_getByKeyWithFallback(bundle.getAlias(), key.data(), bundle.getAlias(), &localStatus); in getCurrencyFormatInfo()
49 if (U_SUCCESS(localStatus) && in getCurrencyFormatInfo()
51 ures_getByIndex(bundle.getAlias(), 2, bundle.getAlias(), &localStatus); in getCurrencyFormatInfo()
54 result.pattern = ures_getStringByIndex(bundle.getAlias(), 0, &dummy, &localStatus); in getCurrencyFormatInfo()
55 result.decimalSeparator = ures_getStringByIndex(bundle.getAlias(), 1, &dummy, &localStatus); in getCurrencyFormatInfo()
56 … result.groupingSeparator = ures_getStringByIndex(bundle.getAlias(), 2, &dummy, &localStatus); in getCurrencyFormatInfo()
57 status = localStatus; in getCurrencyFormatInfo()
58 } else if (localStatus != U_MISSING_RESOURCE_ERROR) { in getCurrencyFormatInfo()
[all …]
Dnumber_patternmodifier.cpp275 UErrorCode localStatus = U_ZERO_ERROR; in getSymbol() local
288 return fCurrencySymbols->getIntlCurrencySymbol(localStatus); in getSymbol()
292 return fCurrencySymbols->getNarrowCurrencySymbol(localStatus); in getSymbol()
294 return fCurrencySymbols->getCurrencySymbol(localStatus); in getSymbol()
298 return fCurrencySymbols->getIntlCurrencySymbol(localStatus); in getSymbol()
304 return fCurrencySymbols->getPluralName(fPlural, localStatus); in getSymbol()
Dnumber_asformat.cpp42 UErrorCode localStatus = U_ZERO_ERROR; in operator ==() local
43 return fFormatter.toSkeleton(localStatus) == _other->fFormatter.toSkeleton(localStatus); in operator ==()
Dnumber_currencysymbols.cpp110 UErrorCode localStatus = U_ZERO_ERROR; in resolveCurrency() local
112 ucurr_forLocale(locale.getName(), buf, 4, &localStatus); in resolveCurrency()
113 if (U_SUCCESS(localStatus)) { in resolveCurrency()
Dnumber_capi.cpp200 UErrorCode localStatus = U_ZERO_ERROR; in unumf_closeResult() local
201 const UFormattedNumberData* impl = UFormattedNumberData::validate(uresult, localStatus); in unumf_closeResult()
207 UErrorCode localStatus = U_ZERO_ERROR; in unumf_close() local
208 const UNumberFormatterData* impl = UNumberFormatterData::validate(f, localStatus); in unumf_close()
Dnumber_rounding.cpp206 UErrorCode localStatus = U_ZERO_ERROR; in withCurrency() local
207 Precision result = Precision::withCurrency(currency, localStatus); in withCurrency()
208 if (U_FAILURE(localStatus)) { in withCurrency()
209 return {localStatus}; in withCurrency()
Dnumber_decimfmtprops.cpp140 UErrorCode localStatus = U_ZERO_ERROR; in equalsDefaultExceptFastFormat() local
141 umtx_initOnce(gDefaultPropertiesInitOnce, &initDefaultProperties, localStatus); in equalsDefaultExceptFastFormat()
Dnumber_skeletons.cpp878 UErrorCode localStatus = U_ZERO_ERROR; in parseCurrencyOption() local
879 CurrencyUnit currency(currencyCode, localStatus); in parseCurrencyOption()
880 if (U_FAILURE(localStatus)) { in parseCurrencyOption()
921 UErrorCode localStatus = U_ZERO_ERROR; in parseMeasureUnitOption() local
922 int32_t numUnits = MeasureUnit::getAvailable(type.data(), units, CAPACITY, localStatus); in parseMeasureUnitOption()
923 if (U_FAILURE(localStatus)) { in parseMeasureUnitOption()
1139 UErrorCode localStatus = U_ZERO_ERROR; in parseIncrementOption() local
1140 dq.setToDecNumber({buffer.data(), buffer.length()}, localStatus); in parseIncrementOption()
1141 if (U_FAILURE(localStatus)) { in parseIncrementOption()
Dnumber_fluent.cpp772 UErrorCode localStatus = U_ZERO_ERROR; in toString() local
773 return toString(localStatus); in toString()
788 UErrorCode localStatus = U_ZERO_ERROR; in appendTo() local
789 return appendTo(appendable, localStatus); in appendTo()
/external/icu/icu4c/source/common/
Ducurr.cpp558 UErrorCode localStatus = U_ZERO_ERROR; in ucurr_forLocale() local
560 currency, UPRV_LENGTHOF(currency), &localStatus); in ucurr_forLocale()
561 if (U_SUCCESS(localStatus) && resLen == 3 && uprv_isInvariantString(currency, resLen)) { in ucurr_forLocale()
596 localStatus = U_MISSING_RESOURCE_ERROR; in ucurr_forLocale()
599 localStatus = U_ZERO_ERROR; in ucurr_forLocale()
600 UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus); in ucurr_forLocale()
601 UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus); in ucurr_forLocale()
602 UResourceBundle *countryArray = ures_getByKey(rb, id, cm, &localStatus); in ucurr_forLocale()
603 UResourceBundle *currencyReq = ures_getByIndex(countryArray, 0, NULL, &localStatus); in ucurr_forLocale()
604 s = ures_getStringByKey(currencyReq, "id", &resLen, &localStatus); in ucurr_forLocale()
[all …]
Ducnvdisp.cpp43 UErrorCode localStatus = U_ZERO_ERROR; in ucnv_getDisplayName() local
62 name=ures_getStringByKey(rb, cnv->sharedData->staticData->name, &length, &localStatus); in ucnv_getDisplayName()
65 if(U_SUCCESS(localStatus)) { in ucnv_getDisplayName()
68 *pErrorCode = localStatus; in ucnv_getDisplayName()
Dstatic_unicode_sets.cpp192 UErrorCode localStatus = U_ZERO_ERROR; in get() local
193 umtx_initOnce(gNumberParseUniSetsInitOnce, &initNumberParseUniSets, localStatus); in get()
194 if (U_FAILURE(localStatus)) { in get()
Dlocdispnames.cpp359 UErrorCode localStatus; in _getDisplayNameForComponent() local
372 localStatus = U_ZERO_ERROR; in _getDisplayNameForComponent()
373 length=(*getter)(locale, localeBuffer, sizeof(localeBuffer), &localStatus); in _getDisplayNameForComponent()
374 if(U_FAILURE(localStatus) || localStatus==U_STRING_NOT_TERMINATED_WARNING) { in _getDisplayNameForComponent()
Drbbiscan.cpp1213 UErrorCode localStatus = U_ZERO_ERROR; in scanSet() local
1216 localStatus = U_MEMORY_ALLOCATION_ERROR; in scanSet()
1218 uset->applyPatternIgnoreSpace(fRB->fRules, pos, fSymbolTable, localStatus); in scanSet()
1220 if (U_FAILURE(localStatus)) { in scanSet()
1226 error(localStatus); in scanSet()
Ducnv_bld.cpp1122 UErrorCode localStatus = U_ZERO_ERROR; in initAvailableConvertersList() local
1124 ucnv_close(ucnv_createConverter(&tempConverter, NULL, &localStatus)); in initAvailableConvertersList()
1129 localStatus = U_ZERO_ERROR; in initAvailableConvertersList()
1130 const char *converterName = uenum_next(allConvEnum, NULL, &localStatus); in initAvailableConvertersList()
1131 if (ucnv_canCreateConverter(converterName, &localStatus)) { in initAvailableConvertersList()
/external/icu/icu4c/source/io/
Duprntf_p.cpp345 UErrorCode localStatus = U_ZERO_ERROR; in u_printf_double_handler() local
346 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus); in u_printf_double_handler()
412 UErrorCode localStatus = U_ZERO_ERROR; in u_printf_integer_handler() local
413 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus); in u_printf_integer_handler()
673 UErrorCode localStatus = U_ZERO_ERROR; in u_printf_scientific_handler() local
674 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus); in u_printf_scientific_handler()
748 UErrorCode localStatus = U_ZERO_ERROR; in u_printf_percent_handler() local
749 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus); in u_printf_percent_handler()
951 UErrorCode localStatus = U_ZERO_ERROR; in u_printf_spellout_handler() local
952 u_printf_reset_sign(format, info, prefixBuffer, &prefixBufferLen, &localStatus); in u_printf_spellout_handler()

12