Lines Matching defs:MessageFormat

50 // class MessageFormat
80 // MessageFormat Type List Number, Date, Time or Choice
157 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer);
165 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat)
216 // Creates a MessageFormat instance based on the pattern.
218 MessageFormat::MessageFormat(const UnicodeString& pattern,
239 MessageFormat::MessageFormat(const UnicodeString& pattern,
261 MessageFormat::MessageFormat(const UnicodeString& pattern,
284 MessageFormat::MessageFormat(const MessageFormat& that)
310 MessageFormat::~MessageFormat()
331 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) {
357 const MessageFormat&
358 MessageFormat::operator=(const MessageFormat& that)
378 MessageFormat::operator==(const Format& rhs) const
382 MessageFormat& that = (MessageFormat&)rhs;
384 // Check class ID before checking MessageFormat members
422 // Creates a copy of this MessageFormat, the caller owns the copy.
425 MessageFormat::clone() const
427 return new MessageFormat(*this);
431 // Sets the locale of this MessageFormat object to theLocale.
434 MessageFormat::setLocale(const Locale& theLocale)
449 // Gets the locale of this MessageFormat object.
452 MessageFormat::getLocale() const
458 MessageFormat::applyPattern(const UnicodeString& newPattern,
470 MessageFormat::applyPattern(const UnicodeString& pattern,
485 void MessageFormat::resetPattern() {
496 MessageFormat::applyPattern(const UnicodeString& pattern,
507 // Converts this MessageFormat instance to a pattern.
510 MessageFormat::toPattern(UnicodeString& appendTo) const {
520 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const {
535 void MessageFormat::setArgStartFormat(int32_t argStart,
557 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber) {
566 void MessageFormat::setCustomArgStartFormat(int32_t argStart,
577 Format* MessageFormat::getCachedFormatter(int32_t argumentNumber) const {
592 // This MessageFormat instance owns the new formats.
594 MessageFormat::adoptFormats(Format** newFormats,
624 // This MessageFormat instance maks a copy of the new formats.
627 MessageFormat::setFormats(const Format** newFormats,
664 MessageFormat::adoptFormat(int32_t n, Format *newFormat) {
683 MessageFormat::adoptFormat(const UnicodeString& formatName,
720 MessageFormat::setFormat(int32_t n, const Format& newFormat) {
743 MessageFormat::getFormat(const UnicodeString& formatName, UErrorCode& status) {
763 MessageFormat::setFormat(const UnicodeString& formatName,
794 MessageFormat::getFormats(int32_t& cnt) const
801 MessageFormat* t = const_cast<MessageFormat*> (this);
831 UnicodeString MessageFormat::getArgName(int32_t partIndex) {
842 MessageFormat::getFormatNames(UErrorCode& status) {
865 MessageFormat::format(const Formattable* source,
875 // Internally creates a MessageFormat instance based on the
880 MessageFormat::format( const UnicodeString& pattern,
886 MessageFormat temp(pattern, success);
896 MessageFormat::format(const Formattable& source,
913 MessageFormat::format(const UnicodeString* argumentNames,
922 const Formattable* MessageFormat::getArgFromListByName(const Formattable* arguments,
935 MessageFormat::format(const Formattable* arguments,
953 void MessageFormat::format(int32_t msgStart, double pluralNumber,
1032 MessageFormat subMsgFormat(subMsgString, fLocale, success);
1095 void MessageFormat::formatComplexSubMessage(int32_t msgStart,
1111 // JDK compatibility mode: (see JDK MessageFormat.format() API docs)
1114 // instantiate a temporary MessageFormat object and format again;
1144 MessageFormat subMsgFormat(emptyPattern, fLocale, success);
1153 UnicodeString MessageFormat::getLiteralStringUntilNextArgument(int32_t from) const {
1172 FieldPosition* MessageFormat::updateMetaData(AppendableWrapper& /*dest*/, int32_t /*prevLength*/,
1174 // Unlike in Java, there are no field attributes defined for MessageFormat. Do nothing.
1186 void MessageFormat::copyObjects(const MessageFormat& that, UErrorCode& ec) {
1244 MessageFormat::parse(int32_t msgStart,
1376 MessageFormat::parse(const UnicodeString& source,
1389 MessageFormat::parse(const UnicodeString& source,
1413 MessageFormat::parseObject( const UnicodeString& source,
1424 MessageFormat::autoQuoteApostrophe(const UnicodeString& pattern, UErrorCode& status) {
1457 void MessageFormat::cacheExplicitFormats(UErrorCode& status) {
1555 Format* MessageFormat::createAppropriateFormat(UnicodeString& type, UnicodeString& style,
1638 int32_t MessageFormat::findKeyword(const UnicodeString& s,
1663 MessageFormat::createIntegerFormat(const Locale& locale, UErrorCode& status) const {
1682 const NumberFormat* MessageFormat::getDefaultNumberFormat(UErrorCode& ec) const {
1684 MessageFormat* t = (MessageFormat*) this;
1703 const DateFormat* MessageFormat::getDefaultDateFormat(UErrorCode& ec) const {
1705 MessageFormat* t = (MessageFormat*) this;
1715 MessageFormat::usesNamedArguments() const {
1720 MessageFormat::getArgTypeCount() const {
1724 UBool MessageFormat::equalFormats(const void* left, const void* right) {
1729 UBool MessageFormat::DummyFormat::operator==(const Format&) const {
1733 Format* MessageFormat::DummyFormat::clone() const {
1737 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1746 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1756 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1766 void MessageFormat::DummyFormat::parseObject(const UnicodeString&,
1800 MessageFormat::PluralSelectorProvider::PluralSelectorProvider(const Locale* loc, UPluralType t)
1804 MessageFormat::PluralSelectorProvider::~PluralSelectorProvider() {
1809 UnicodeString MessageFormat::PluralSelectorProvider::select(double number, UErrorCode& ec) const {
1813 MessageFormat::PluralSelectorProvider* t = const_cast<MessageFormat::PluralSelectorProvider*>(this);
1823 void MessageFormat::PluralSelectorProvider::reset(const Locale* loc) {