Home | History | Annotate | Download | only in i18n

Lines Matching refs:format

200     void formatAndAppend(const Format* formatter, const Formattable& arg, UErrorCode& ec) {
202 formatter->format(arg, s, ec);
287 Format(that),
363 Format::operator=(that);
379 MessageFormat::operator==(const Format& rhs) const
386 if (!Format::operator==(rhs) ||
413 const Format* format = (const Format*)uhash_iget(cachedFormatters, cur->key.integer);
414 const Format* rhs_format = (const Format*)uhash_iget(that.cachedFormatters, rhs_cur->key.integer);
415 if (*format != *rhs_format) {
425 Format*
537 Format* formatter,
568 Format* formatter,
578 Format* MessageFormat::getCachedFormatter(int32_t argumentNumber) const {
583 if (ptr != NULL && dynamic_cast<DummyFormat*>((Format*)ptr) == NULL) {
584 return (Format*) ptr;
595 MessageFormat::adoptFormats(Format** newFormats,
628 MessageFormat::setFormats(const Format** newFormats,
645 Format* newFormat = NULL;
661 // Adopt a single format by format number.
662 // Do nothing if the format number is not less than the array count.
665 MessageFormat::adoptFormat(int32_t n, Format *newFormat) {
666 LocalPointer<Format> p(newFormat);
681 // Adopt a single format by format name.
685 Format* formatToAdopt,
687 LocalPointer<Format> p(formatToAdopt);
700 Format* f;
718 // Set a single format.
721 MessageFormat::setFormat(int32_t n, const Format& newFormat) {
728 Format* new_format = newFormat.clone();
741 // Get a single format by format name.
743 Format *
761 // Set a single format by format name
765 const Format& newFormat,
781 Format* new_format = newFormat.clone();
793 // Gets the format array.
794 const Format**
797 // This old API returns an array (which we hold) of Format*
800 // on demand that contains aliases to the subformats[i].format
806 Format** a = (Format**)
807 uprv_malloc(sizeof(Format*) * formatAliasesCapacity);
814 Format** a = (Format**)
815 uprv_realloc(formatAliases, sizeof(Format*) * argTypeCount);
828 return (const Format**)formatAliases;
866 MessageFormat::format(const Formattable* source,
872 return format(source, NULL, cnt, appendTo, &ignore, success);
881 MessageFormat::format( const UnicodeString& pattern,
888 return temp.format(arguments, NULL, cnt, appendTo, NULL, success);
897 MessageFormat::format(const Formattable& source,
910 return format(tmpPtr, NULL, cnt, appendTo, &ignore, success);
914 MessageFormat::format(const UnicodeString* argumentNames,
919 return format(arguments, argumentNames, count, appendTo, NULL, success);
936 MessageFormat::format(const Formattable* arguments,
948 format(0, 0.0, arguments, argumentNames, cnt, app, pos, status);
954 void MessageFormat::format(int32_t msgStart, double pluralNumber,
1015 const Format* formatter = NULL;
1029 formatter->format(*arg, subMsgString, success);
1034 subMsgFormat.format(0, 0, arguments, argumentNames, cnt, appendTo, ignore, success);
1108 format(msgStart, pluralNumber, arguments, argumentNames, cnt, appendTo, NULL, success);
1112 // JDK compatibility mode: (see JDK MessageFormat.format() API docs)
1115 // instantiate a temporary MessageFormat object and format again;
1131 sb.append(nf->format(pluralNumber, sb, success));
1147 subMsgFormat.format(0, 0, arguments, argumentNames, cnt, appendTo, NULL, success);
1220 Format* newFormat = ((Format*)(cur->value.pointer))->clone();
1300 const Format* formatter = NULL;
1447 static Format* makeRBNF(URBNFRuleSetTag tag, const Locale& locale, const UnicodeString& defaultRuleSet, UErrorCode& ec) {
1529 Format* formatter = createAppropriateFormat(explicitType, style, formattableType, parseError, status);
1556 Format* MessageFormat::createAppropriateFormat(UnicodeString& type, UnicodeString& style,
1562 Format* fmt = NULL;
1677 * Return the default number format. Used to format a numeric
1678 * argument when subformats[i].format is NULL. Returns NULL
1698 * Return the default date format. Used to format a date
1699 * argument when subformats[i].format is NULL. Returns NULL
1726 return *(const Format*)left==*(const Format*)right;
1730 UBool MessageFormat::DummyFormat::operator==(const Format&) const {
1734 Format* MessageFormat::DummyFormat::clone() const {
1738 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1747 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1757 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,