TDLib
Loading...
Searching...
No Matches
languagePackStringValuePluralized Class Referencefinal

Inherits LanguagePackStringValue.

Description

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.

Public Member Functions

 languagePackStringValuePluralized ()
 languagePackStringValuePluralized (string const &zero_value_, string const &one_value_, string const &two_value_, string const &few_value_, string const &many_value_, string const &other_value_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

string few_value_
 Value for few objects.
string many_value_
 Value for many objects.
string one_value_
 Value for one object.
string other_value_
 Default value.
string two_value_
 Value for two objects.
string zero_value_
 Value for zero objects.

Static Public Attributes

static const std::int32_t ID = 1906840261
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ languagePackStringValuePluralized() [1/2]

languagePackStringValuePluralized ( )

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.

◆ languagePackStringValuePluralized() [2/2]

languagePackStringValuePluralized ( string const & zero_value_,
string const & one_value_,
string const & two_value_,
string const & few_value_,
string const & many_value_,
string const & other_value_ )

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.

Parameters
[in]zero_value_Value for zero objects.
[in]one_value_Value for one object.
[in]two_value_Value for two objects.
[in]few_value_Value for few objects.
[in]many_value_Value for many objects.
[in]other_value_Default value.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: