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/plurfmt_8h_source.html below:

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

19 #if U_SHOW_CPLUSPLUS_API 26 #if !UCONFIG_NO_FORMATTING 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...

Base class for all formats.

UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const

Formats an object to produce a string.

Formattable objects can be passed to the Format class or its subclasses for formatting.

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...

void setNumberFormat(const NumberFormat *format, UErrorCode &status)

Sets the number format used by this formatter.

PluralFormat(const Locale &locale, UPluralType type, const UnicodeString &pattern, UErrorCode &status)

Creates a new PluralFormat for a plural type, a pattern and a locale.

PluralFormat(const Locale &locale, const UnicodeString &pattern, UErrorCode &status)

Creates a new cardinal-number PluralFormat for a given pattern string and locale.

virtual UClassID getDynamicClassID() const override

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

PluralFormat & operator=(const PluralFormat &other)

Assignment operator.

UnicodeString & format(const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const override

Formats a plural message for a number taken from a Formattable object.

virtual void parseObject(const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const override

This method is not yet supported by PluralFormat.

virtual bool operator!=(const Format &other) const

Return true if another object is semantically unequal to this one.

PluralFormat(const UnicodeString &pattern, UErrorCode &status)

Creates a new cardinal-number PluralFormat for a given pattern string.

void applyPattern(const UnicodeString &pattern, UErrorCode &status)

Sets the pattern used by this plural format.

PluralFormat(const PluralRules &rules, UErrorCode &status)

Creates a new PluralFormat for a given set of rules.

UnicodeString & format(int32_t number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const

Formats a plural message for a given number.

PluralFormat(const Locale &locale, UPluralType type, UErrorCode &status)

Creates a new PluralFormat for the plural type.

PluralFormat(const PluralRules &rules, const UnicodeString &pattern, UErrorCode &status)

Creates a new PluralFormat for a given set of rules, a pattern and a locale.

PluralFormat(UErrorCode &status)

Creates a new cardinal-number PluralFormat for the default locale.

UnicodeString & toPattern(UnicodeString &appendTo)

Returns the pattern from applyPattern() or constructor().

PluralFormat(const Locale &locale, const PluralRules &rules, const UnicodeString &pattern, UErrorCode &status)

Creates a new PluralFormat for a given set of rules, a pattern and a locale.

virtual PluralFormat * clone() const override

Clones this Format object polymorphically.

UnicodeString format(double number, UErrorCode &status) const

Formats a plural message for a given number.

void setLocale(const Locale &locale, UErrorCode &status)

Sets the locale used by this PluraFormat object.

UnicodeString format(int32_t number, UErrorCode &status) const

Formats a plural message for a given number.

PluralFormat(const PluralFormat &other)

copy constructor.

virtual bool operator==(const Format &other) const override

Return true if another object is semantically equal to this one.

PluralFormat(const Locale &locale, UErrorCode &status)

Creates a new cardinal-number PluralFormat for a given locale.

UnicodeString & format(double number, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const

Formats a plural message for a given number.

PluralFormat(const Locale &locale, const PluralRules &rules, UErrorCode &status)

Creates a new PluralFormat for a given set of rules.

static UClassID getStaticClassID()

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

virtual ~PluralFormat()

Destructor.

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.


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