19#if U_SHOW_CPLUSPLUS_API
26#if !UCONFIG_NO_FORMATTING
315 using Format::format;
387#ifndef U_HIDE_DEPRECATED_API
526 virtual ~PluralSelector();
539 class U_I18N_API PluralSelectorAdapter :
public PluralSelector {
541 PluralSelectorAdapter() : pluralRules(
nullptr) {
544 virtual ~PluralSelectorAdapter();
546 virtual UnicodeString select(
void *context,
double number,
UErrorCode& )
const override;
550 PluralRules* pluralRules;
554 MessagePattern msgPattern;
555 NumberFormat* numberFormat;
557 PluralSelectorAdapter pluralRulesWrapper;
559 PluralFormat() =
delete;
565 void copyObjects(
const PluralFormat& other);
567 UnicodeString&
format(
const Formattable& numberObject,
double number,
568 UnicodeString& appendTo,
583 static int32_t findSubMessage(
584 const MessagePattern& pattern, int32_t partIndex,
585 const PluralSelector& selector,
void *context,
double number,
UErrorCode& ec);
587 void parseType(
const UnicodeString& source,
const NFRule *rbnfLenientScanner,
588 Formattable& result, FieldPosition& pos)
const;
590 friend class MessageFormat;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A Locale object represents a specific geographical, political, or cultural region.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
Defines rules for mapping non-negative numeric values onto a small set of keywords.
UMemory is the common ICU base class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
C++ API: Compatibility APIs for number formatting.
C++ API: PluralRules object.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UPluralType
Type of plurals and PluralRules.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.