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

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

29 #if U_SHOW_CPLUSPLUS_API 36 #if !UCONFIG_NO_FORMATTING 44 #ifndef U_HIDE_DEPRECATED_API 221  const UBool

* closures,

328  const UBool

* closures,

340  virtual const double

*

getLimits

(int32_t& count)

const

;

499  virtual void

setChoices(

const double

* limits,

500  const UBool

* closures,

512  static

int32_t findSubMessage(

const MessagePattern

&pattern, int32_t partIndex,

double

number);

514  static double

parseArgument(

526  static

int32_t matchStringUntilLimitPart(

527  const MessagePattern

&pattern, int32_t partIndex, int32_t limitPartIndex,

ChoiceFormat converts between ranges of numeric values and strings for those ranges.

virtual void setChoices(const double *limitsToCopy, const UnicodeString *formatsToCopy, int32_t count)

Sets the choices to be used in formatting.

virtual UnicodeString & format(double number, UnicodeString &appendTo, FieldPosition &pos) const override

Formats a double number using this object's choices.

ChoiceFormat(const UnicodeString &pattern, UErrorCode &status)

Constructs a new ChoiceFormat from the pattern string.

ChoiceFormat(const double *limits, const UBool *closures, const UnicodeString *formats, int32_t count)

Constructs a new ChoiceFormat with the given limits, closure flags and message strings.

virtual void setChoices(const double *limits, const UBool *closures, const UnicodeString *formats, int32_t count)

Sets the choices to be used in formatting.

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

Returns true if the given Format objects are semantically equal.

virtual UnicodeString & format(int64_t number, UnicodeString &appendTo, FieldPosition &pos) const override

Formats an int64_t number using this object's choices.

virtual const UBool * getClosures(int32_t &count) const

Returns nullptr and 0.

static UClassID getStaticClassID()

Returns the class ID for this class.

ChoiceFormat(const ChoiceFormat &that)

Copy constructor.

virtual void applyPattern(const UnicodeString &pattern, UParseError &parseError, UErrorCode &status)

Sets the pattern.

virtual UnicodeString & toPattern(UnicodeString &pattern) const

Gets the pattern.

virtual const UnicodeString * getFormats(int32_t &count) const

Returns nullptr and 0.

virtual ChoiceFormat * clone() const override

Clones this Format object.

virtual UnicodeString & format(const Formattable *objs, int32_t cnt, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &success) const

Formats an array of objects using this object's choices.

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

Sets the pattern.

virtual ~ChoiceFormat()

Destructor.

virtual void parse(const UnicodeString &text, Formattable &result, ParsePosition &parsePosition) const override

Looks for the longest match of any message string on the input text and, if there is a match,...

const ChoiceFormat & operator=(const ChoiceFormat &that)

Assignment operator.

ChoiceFormat(const double *limits, const UnicodeString *formats, int32_t count)

Constructs a new ChoiceFormat with the given limits and message strings.

virtual const double * getLimits(int32_t &count) const

Returns nullptr and 0.

virtual UnicodeString & format(int32_t number, UnicodeString &appendTo, FieldPosition &pos) const override

Formats an int32_t number using this object's choices.

virtual UClassID getDynamicClassID() const override

Returns a unique class ID POLYMORPHICALLY.

FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...

Base class for all formats.

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

Parses and represents ICU MessageFormat patterns.

virtual void parse(const UnicodeString &text, Formattable &result, ParsePosition &parsePosition) const =0

Return a long if possible (e.g.

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

Formats an object to produce a string.

ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...

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

C++ API: FieldPosition identifies the fields in a formatted output.

C++ API: Base class for all formats.

C++ API: MessagePattern class: Parses and represents ICU MessageFormat patterns.

C++ API: Compatibility APIs for number formatting.

A UParseError struct is used to returned detailed information about parsing errors.

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.

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