A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/plurrule_8h_source.html below:

ICU 77.1: i18n/unicode/plurrule.h Source File

23 #if U_SHOW_CPLUSPLUS_API 30 #if !UCONFIG_NO_FORMATTING 34 #ifndef U_HIDE_INTERNAL_API 43 #define UPLRULES_NO_UNIQUE_VALUE ((double)-0.00123456777) 51 class

PluralRuleParser;

52 class

PluralKeywordEnumeration;

54 class

SharedPluralRules;

55 class

StandardPluralRanges;

58 class

FormattedNumber;

59 class

FormattedNumberRange;

61 class

UFormattedNumberRangeData;

62 class

DecimalQuantity;

67 #ifndef U_HIDE_INTERNAL_API 68 using

icu::number::impl::DecimalQuantity;

307 #ifndef U_HIDE_INTERNAL_API 392 #ifndef U_HIDE_INTERNAL_API 415 #ifndef U_HIDE_DEPRECATED_API 449  double

*dest, int32_t destCapacity,

472  double

*dest, int32_t destCapacity,

475 #ifndef U_HIDE_INTERNAL_API 497

DecimalQuantity *dest, int32_t destCapacity,

521 #ifndef U_HIDE_INTERNAL_API 568

StandardPluralRanges *mStandardPluralRanges;

572

RuleChain *rulesForKeyword(

const UnicodeString

&keyword)

const

;

581  friend class

PluralRuleParser;

A Locale object represents a specific geographical, political, or cultural region.

Defines rules for mapping non-negative numeric values onto a small set of keywords.

PluralRules & operator=(const PluralRules &)

Assignment operator.

StringEnumeration * getKeywords(UErrorCode &status) const

Returns a list of all rule keywords used in this PluralRules object.

UnicodeString select(const number::FormattedNumber &number, UErrorCode &status) const

Given a formatted number, returns the keyword of the first rule that applies to the number.

UnicodeString select(const number::FormattedNumberRange &range, UErrorCode &status) const

Given a formatted number range, returns the overall plural form of the range.

virtual UClassID getDynamicClassID() const override

ICU "poor man's RTTI", returns a UClassID for the actual class.

static PluralRules * forLocale(const Locale &locale, UErrorCode &status)

Provides access to the predefined cardinal-number PluralRules for a given locale.

static StringEnumeration * getAvailableLocales(UErrorCode &status)

Return a StringEnumeration over the locales for which there is plurals data.

static PluralRules * internalForLocale(const Locale &locale, UPluralType type, UErrorCode &status)

For ICU use only.

static PluralRules * createRules(const UnicodeString &description, UErrorCode &status)

Creates a PluralRules from a description if it is parsable, otherwise returns nullptr.

static PluralRules * createDefaultRules(UErrorCode &status)

The default rules that accept any number.

UBool isKeyword(const UnicodeString &keyword) const

Returns true if the given keyword is defined in this PluralRules object.

PluralRules(UErrorCode &status)

Constructor.

PluralRules(const PluralRules &other)

Copy constructor.

double getUniqueKeywordValue(const UnicodeString &keyword)

Deprecated Function, does not return useful results.

UnicodeString select(const number::impl::UFormattedNumberRangeData *urange, UErrorCode &status) const

virtual ~PluralRules()

Destructor.

PluralRules * clone() const

Clone.

UnicodeString select(double number) const

Given a floating-point number, returns the keyword of the first rule that applies to the number.

UnicodeString getKeywordOther() const

Returns keyword for default plural form.

UnicodeString getRules() const

static const SharedPluralRules * createSharedInstance(const Locale &locale, UPluralType type, UErrorCode &status)

For ICU use only.

static PluralRules * forLocale(const Locale &locale, UPluralType type, UErrorCode &status)

Provides access to the predefined PluralRules for a given locale and the plural type.

UnicodeString select(int32_t number) const

Given an integer, returns the keyword of the first rule that applies to the number.

int32_t getSamples(const UnicodeString &keyword, double *dest, int32_t destCapacity, UErrorCode &status)

Returns sample values for which select() would return the keyword.

int32_t getSamples(const UnicodeString &keyword, DecimalQuantity *dest, int32_t destCapacity, UErrorCode &status)

Internal-only function that returns DecimalQuantitys instead of doubles.

bool operator!=(const PluralRules &other) const

Compares the inequality of two PluralRules objects.

int32_t getAllKeywordValues(const UnicodeString &keyword, double *dest, int32_t destCapacity, UErrorCode &status)

Deprecated Function, does not produce useful results.

UnicodeString select(const IFixedDecimal &number) const

virtual bool operator==(const PluralRules &other) const

Compares the equality of two PluralRules objects.

static UClassID getStaticClassID()

ICU "poor man's RTTI", returns a UClassID for this class.

Base class for 'pure' C++ implementations of uenum api.

UObject is the common ICU "boilerplate" class.

UnicodeString is a string class that stores Unicode characters directly and provides similar function...

The result of a number range formatting operation.

The result of a number formatting operation.

C++ API: Base class for all formats.

U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)

Global operator == for StringPiece.

C++ API: Compatibility APIs for number formatting.

int8_t UBool

The ICU boolean type, a signed-byte integer.

void * UClassID

UClassID is used to identify classes without using the compiler's RTTI.

C API: Plural rules, select plural keywords for numeric values.

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4