Home | History | Annotate | Download | only in i18n

Lines Matching refs:ec

200     void formatAndAppend(const Format* formatter, const Formattable& arg, UErrorCode& ec) {
202 formatter->format(arg, s, ec);
203 if (U_SUCCESS(ec)) {
304 UErrorCode ec = U_ZERO_ERROR;
305 copyObjects(that, ec);
306 if (U_FAILURE(ec)) {
369 UErrorCode ec = U_ZERO_ERROR;
370 copyObjects(that, ec);
371 if (U_FAILURE(ec)) {
400 UErrorCode ec = U_ZERO_ERROR;
407 for (; idx < count && rhs_idx < rhs_count && U_SUCCESS(ec); ++idx, ++rhs_idx) {
473 UErrorCode& ec)
475 if(U_FAILURE(ec)) {
478 msgPattern.parse(pattern, &parseError, ec);
479 cacheExplicitFormats(ec);
481 if (U_FAILURE(ec)) {
1187 void MessageFormat::copyObjects(const MessageFormat& that, UErrorCode& ec) {
1195 if (!allocateArgTypes(argTypeCount, ec)) {
1209 equalFormatsForHash, &ec);
1210 if (U_FAILURE(ec)) {
1218 for (idx = 0, pos = -1; idx < count && U_SUCCESS(ec); ++idx) {
1222 uhash_iput(cachedFormatters, cur->key.integer, newFormat, &ec);
1224 ec = U_MEMORY_ALLOCATION_ERROR;
1232 NULL, &ec);
1236 for (idx = 0, pos = -1; idx < count && U_SUCCESS(ec); ++idx) {
1238 uhash_iputi(customFormatArgStarts, cur->key.integer, cur->value.integer, &ec);
1249 UErrorCode& ec) const {
1251 if (U_FAILURE(ec)) {
1257 ec = U_ARGUMENT_TYPE_MISMATCH;
1357 ec = U_UNSUPPORTED_ERROR;
1361 ec = U_INTERNAL_PROGRAM_ERROR;
1380 UErrorCode ec = U_ZERO_ERROR;
1381 return parse(0, source, pos, count, ec);
1447 static Format* makeRBNF(URBNFRuleSetTag tag, const Locale& locale, const UnicodeString& defaultRuleSet, UErrorCode& ec) {
1448 RuleBasedNumberFormat* fmt = new RuleBasedNumberFormat(tag, locale, ec);
1450 ec = U_MEMORY_ALLOCATION_ERROR;
1451 } else if (U_SUCCESS(ec) && defaultRuleSet.length() > 0) {
1558 UErrorCode& ec) {
1559 if (U_FAILURE(ec)) {
1571 fmt = NumberFormat::createInstance(fLocale, ec);
1574 fmt = NumberFormat::createCurrencyInstance(fLocale, ec);
1577 fmt = NumberFormat::createPercentInstance(fLocale, ec);
1581 fmt = createIntegerFormat(fLocale, ec);
1584 fmt = NumberFormat::createInstance(fLocale, ec);
1588 decfmt->applyPattern(style,parseError,ec);
1617 fmt = makeRBNF(URBNF_SPELLOUT, fLocale, style, ec);
1621 fmt = makeRBNF(URBNF_ORDINAL, fLocale, style, ec);
1625 fmt = makeRBNF(URBNF_DURATION, fLocale, style, ec);
1629 ec = U_ILLEGAL_ARGUMENT_ERROR;
1683 const NumberFormat* MessageFormat::getDefaultNumberFormat(UErrorCode& ec) const {
1686 t->defaultNumberFormat = NumberFormat::createInstance(fLocale, ec);
1687 if (U_FAILURE(ec)) {
1691 ec = U_MEMORY_ALLOCATION_ERROR;
1704 const DateFormat* MessageFormat::getDefaultDateFormat(UErrorCode& ec) const {
1709 ec = U_MEMORY_ALLOCATION_ERROR;
1810 UnicodeString MessageFormat::PluralSelectorProvider::select(double number, UErrorCode& ec) const {
1811 if (U_FAILURE(ec)) {
1816 t->rules = PluralRules::forLocale(*locale, type, ec);
1817 if (U_FAILURE(ec)) {