Home | History | Annotate | Download | only in i18n

Lines Matching defs:MessageFormat

51 // class MessageFormat
81 // MessageFormat Type List Number, Date, Time or Choice
158 return icu::MessageFormat::equalFormats(key1.pointer, key2.pointer);
166 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(MessageFormat)
227 // Creates a MessageFormat instance based on the pattern.
229 MessageFormat::MessageFormat(const UnicodeString& pattern,
250 MessageFormat::MessageFormat(const UnicodeString& pattern,
272 MessageFormat::MessageFormat(const UnicodeString& pattern,
295 MessageFormat::MessageFormat(const MessageFormat& that)
321 MessageFormat::~MessageFormat()
342 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) {
368 const MessageFormat&
369 MessageFormat::operator=(const MessageFormat& that)
389 MessageFormat::operator==(const Format& rhs) const
393 MessageFormat& that = (MessageFormat&)rhs;
395 // Check class ID before checking MessageFormat members
433 // Creates a copy of this MessageFormat, the caller owns the copy.
436 MessageFormat::clone() const
438 return new MessageFormat(*this);
442 // Sets the locale of this MessageFormat object to theLocale.
445 MessageFormat::setLocale(const Locale& theLocale)
460 // Gets the locale of this MessageFormat object.
463 MessageFormat::getLocale() const
469 MessageFormat::applyPattern(const UnicodeString& newPattern,
481 MessageFormat::applyPattern(const UnicodeString& pattern,
496 void MessageFormat::resetPattern() {
507 MessageFormat::applyPattern(const UnicodeString& pattern,
518 // Converts this MessageFormat instance to a pattern.
521 MessageFormat::toPattern(UnicodeString& appendTo) const {
531 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const {
546 void MessageFormat::setArgStartFormat(int32_t argStart,
569 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber) {
578 void MessageFormat::setCustomArgStartFormat(int32_t argStart,
589 Format* MessageFormat::getCachedFormatter(int32_t argumentNumber) const {
604 // This MessageFormat instance owns the new formats.
606 MessageFormat::adoptFormats(Format** newFormats,
636 // This MessageFormat instance maks a copy of the new formats.
639 MessageFormat::setFormats(const Format** newFormats,
676 MessageFormat::adoptFormat(int32_t n, Format *newFormat) {
695 MessageFormat::adoptFormat(const UnicodeString& formatName,
732 MessageFormat::setFormat(int32_t n, const Format& newFormat) {
755 MessageFormat::getFormat(const UnicodeString& formatName, UErrorCode& status) {
775 MessageFormat::setFormat(const UnicodeString& formatName,
806 MessageFormat::getFormats(int32_t& cnt) const
813 MessageFormat* t = const_cast<MessageFormat*> (this);
843 UnicodeString MessageFormat::getArgName(int32_t partIndex) {
849 MessageFormat::getFormatNames(UErrorCode& status) {
872 MessageFormat::format(const Formattable* source,
882 // Internally creates a MessageFormat instance based on the
887 MessageFormat::format( const UnicodeString& pattern,
893 MessageFormat temp(pattern, success);
903 MessageFormat::format(const Formattable& source,
920 MessageFormat::format(const UnicodeString* argumentNames,
929 const Formattable* MessageFormat::getArgFromListByName(const Formattable* arguments,
942 MessageFormat::format(const Formattable* arguments,
962 * Separate so that it is possible to make MessageFormat Freezable.
1002 void MessageFormat::format(int32_t msgStart, const void *plNumber,
1094 MessageFormat subMsgFormat(subMsgString, fLocale, success);
1157 void MessageFormat::formatComplexSubMessage(int32_t msgStart,
1173 // JDK compatibility mode: (see JDK MessageFormat.format() API docs)
1176 // instantiate a temporary MessageFormat object and format again;
1213 MessageFormat subMsgFormat(emptyPattern, fLocale, success);
1222 UnicodeString MessageFormat::getLiteralStringUntilNextArgument(int32_t from) const {
1241 FieldPosition* MessageFormat::updateMetaData(AppendableWrapper& /*dest*/, int32_t /*prevLength*/,
1243 // Unlike in Java, there are no field attributes defined for MessageFormat. Do nothing.
1256 MessageFormat::findOtherSubMessage(int32_t partIndex) const {
1285 MessageFormat::findFirstPluralNumberArg(int32_t msgStart, const UnicodeString &argName) const {
1308 void MessageFormat::copyObjects(const MessageFormat& that, UErrorCode& ec) {
1366 MessageFormat::parse(int32_t msgStart,
1498 MessageFormat::parse(const UnicodeString& source,
1511 MessageFormat::parse(const UnicodeString& source,
1535 MessageFormat::parseObject( const UnicodeString& source,
1546 MessageFormat::autoQuoteApostrophe(const UnicodeString& pattern, UErrorCode& status) {
1579 void MessageFormat::cacheExplicitFormats(UErrorCode& status) {
1677 Format* MessageFormat::createAppropriateFormat(UnicodeString& type, UnicodeString& style,
1760 int32_t MessageFormat::findKeyword(const UnicodeString& s,
1785 MessageFormat::createIntegerFormat(const Locale& locale, UErrorCode& status) const {
1804 const NumberFormat* MessageFormat::getDefaultNumberFormat(UErrorCode& ec) const {
1806 MessageFormat* t = (MessageFormat*) this;
1825 const DateFormat* MessageFormat::getDefaultDateFormat(UErrorCode& ec) const {
1827 MessageFormat* t = (MessageFormat*) this;
1837 MessageFormat::usesNamedArguments() const {
1842 MessageFormat::getArgTypeCount() const {
1846 UBool MessageFormat::equalFormats(const void* left, const void* right) {
1851 UBool MessageFormat::DummyFormat::operator==(const Format&) const {
1855 Format* MessageFormat::DummyFormat::clone() const {
1859 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1868 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1878 UnicodeString& MessageFormat::DummyFormat::format(const Formattable&,
1888 void MessageFormat::DummyFormat::parseObject(const UnicodeString&,
1921 MessageFormat::PluralSelectorProvider::PluralSelectorProvider(const MessageFormat &mf, UPluralType t)
1925 MessageFormat::PluralSelectorProvider::~PluralSelectorProvider() {
1929 UnicodeString MessageFormat::PluralSelectorProvider::select(void *ctx, double number,
1934 MessageFormat::PluralSelectorProvider* t = const_cast<MessageFormat::PluralSelectorProvider*>(this);
1969 void MessageFormat::PluralSelectorProvider::reset() {