Go to the documentation of this file.
24 #if !UCONFIG_NO_FORMATTING
390 #ifndef U_HIDE_DEPRECATED_API
529 virtual ~PluralSelector();
545 class U_I18N_API PluralSelectorAdapter :
public PluralSelector {
547 PluralSelectorAdapter() : pluralRules(
NULL) {
550 virtual ~PluralSelectorAdapter();
552 virtual UnicodeString select(
void *context,
double number,
UErrorCode& )
const;
556 PluralRules* pluralRules;
560 MessagePattern msgPattern;
561 NumberFormat* numberFormat;
563 PluralSelectorAdapter pluralRulesWrapper;
571 void copyObjects(
const PluralFormat& other);
573 UnicodeString& format(
const Formattable& numberObject,
double number,
574 UnicodeString& appendTo,
589 static int32_t findSubMessage(
590 const MessagePattern& pattern, int32_t partIndex,
591 const PluralSelector& selector,
void *context,
double number,
UErrorCode& ec);
593 void parseType(
const UnicodeString& source,
const NFRule *rbnfLenientScanner,
594 Formattable& result, FieldPosition& pos)
const;
596 friend class MessageFormat;
UPluralType
Type of plurals and PluralRules.
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
Basic definitions for ICU, for both C and C++ APIs.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
int8_t UBool
The ICU boolean type.
Defines rules for mapping non-negative numeric values onto a small set of keywords.
#define NULL
Define NULL if necessary, to nullptr for C++ and to ((void *)0) for C.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
UMemory is the common ICU base class.
C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.
C++ API: Compatibility APIs for number formatting.
C++ API: PluralRules object.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
A Locale object represents a specific geographical, political, or cultural region.