List of all members | Public Fields | Public Instance Methods | Static Public Attributes
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 Fields

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

Public Instance Methods

 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 Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ languagePackStringValuePluralized() [1/2]

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.

Method 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: