13 #if !UCONFIG_NO_FORMATTING
106 #if U_SHOW_CPLUSPLUS_API
140 UChar *keyword, int32_t capacity,
UPluralRules * uplrules_openForType(const char *locale, UPluralType type, UErrorCode *status)
Opens a new UPluralRules object using the predefined plural rules for a given locale and the plural t...
UPluralRules * uplrules_open(const char *locale, UErrorCode *status)
Opens a new UPluralRules object using the predefined cardinal-number plural rules for a given locale...
int32_t uplrules_select(const UPluralRules *uplrules, double number, UChar *keyword, int32_t capacity, UErrorCode *status)
Given a number, returns the keyword of the first rule that applies to the number, according to the su...
void uplrules_close(UPluralRules *uplrules)
Closes a UPluralRules object.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
Plural rules for ordinal numbers: 1st file, 2nd file, 3rd file, 4th file, etc.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
Plural rules for cardinal numbers: 1 file vs.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Number of Plural rules types.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
UPluralType
Type of plurals and PluralRules.
struct UPluralRules UPluralRules
C typedef for struct UPluralRules.
Basic definitions for ICU, for both C and C++ APIs.
"Smart pointer" class, closes a UPluralRules via uplrules_close().
#define U_DRAFT
This is used to declare a function as a draft public ICU C API.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.