Go to the documentation of this file.
4 #ifndef __DISPLAYOPTIONS_H__
5 #define __DISPLAYOPTIONS_H__
9 #if U_SHOW_CPLUSPLUS_API
11 #if !UCONFIG_NO_FORMATTING
25 #ifndef U_HIDE_DRAFT_API
62 this->grammaticalCase = grammaticalCase;
74 this->nounClass = nounClass;
86 this->pluralCategory = pluralCategory;
98 this->capitalization = capitalization;
110 this->nameStyle = nameStyle;
122 this->displayLength = displayLength;
134 this->substituteHandling = substituteHandling;
167 static Builder builder();
174 Builder copyToBuilder()
const;
266 #endif // U_HIDE_DRAFT_API
274 #endif // __DISPLAYOPTIONS_H__
UDisplayOptionsDisplayLength getDisplayLength() const
Gets the display length.
Builder & setCapitalization(UDisplayOptionsCapitalization capitalization)
Sets the capitalization.
Basic definitions for ICU, for both C and C++ APIs.
UDisplayOptionsNameStyle
Represents all the dialect handlings.
Builder & setNounClass(UDisplayOptionsNounClass nounClass)
Sets the noun class.
C API: API for accessing ICU version numbers.
DisplayOptions build()
Builds the display options.
UDisplayOptionsGrammaticalCase getGrammaticalCase() const
Gets the grammatical case.
UDisplayOptionsCapitalization
Represents all the capitalization options.
Represents all the display options that are supported by CLDR such as grammatical case,...
Builder & setPluralCategory(UDisplayOptionsPluralCategory pluralCategory)
Sets the plural category.
UDisplayOptionsPluralCategory
Standard CLDR plural form/category constants.
UDisplayOptionsSubstituteHandling getSubstituteHandling() const
Gets the substitute handling.
UDisplayOptionsNameStyle getNameStyle() const
Gets the dialect handling.
C API: Display options (enum types, values, helper functions)
UDisplayOptionsSubstituteHandling
Represents all the substitute handling.
UDisplayOptionsPluralCategory getPluralCategory() const
Gets the plural category.
Builder & setNameStyle(UDisplayOptionsNameStyle nameStyle)
Sets the dialect handling.
UDisplayOptionsCapitalization getCapitalization() const
Gets the capitalization.
Builder & setSubstituteHandling(UDisplayOptionsSubstituteHandling substituteHandling)
Sets the substitute handling.
UDisplayOptionsDisplayLength
Represents all the display lengths.
Builder & setDisplayLength(UDisplayOptionsDisplayLength displayLength)
Sets the display length.
UDisplayOptionsGrammaticalCase
Represents all the grammatical cases that are supported by CLDR.
Responsible for building DisplayOptions.
Builder & setGrammaticalCase(UDisplayOptionsGrammaticalCase grammaticalCase)
Sets the grammatical case.
UDisplayOptionsNounClass getNounClass() const
Gets the noun class.
UDisplayOptionsNounClass
Represents all the grammatical noun classes that are supported by CLDR.