19#if U_SHOW_CPLUSPLUS_API
26#if !UCONFIG_NO_FORMATTING
320 using Format::format;
392#ifndef U_HIDE_DEPRECATED_API
531 virtual ~PluralSelector();
544 class U_I18N_API PluralSelectorAdapter :
public PluralSelector {
546 PluralSelectorAdapter() : pluralRules(
NULL) {
549 virtual ~PluralSelectorAdapter();
551 virtual UnicodeString select(
void *context,
double number,
UErrorCode& )
const override;
555 PluralRules* pluralRules;
559 MessagePattern msgPattern;
560 NumberFormat* numberFormat;
562 PluralSelectorAdapter pluralRulesWrapper;
564 PluralFormat() =
delete;
570 void copyObjects(
const PluralFormat& other);
572 UnicodeString&
format(
const Formattable& numberObject,
double number,
573 UnicodeString& appendTo,
588 static int32_t findSubMessage(
589 const MessagePattern& pattern, int32_t partIndex,
590 const PluralSelector& selector,
void *context,
double number,
UErrorCode& ec);
592 void parseType(
const UnicodeString& source,
const NFRule *rbnfLenientScanner,
593 Formattable& result, FieldPosition& pos)
const;
595 friend class MessageFormat;
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
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.
#define NULL
Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C.
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.