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__ UDisplayOptionsGrammaticalCase getGrammaticalCase() const
Gets the grammatical case.
Builder & setCapitalization(UDisplayOptionsCapitalization capitalization)
Sets the capitalization.
C API: API for accessing ICU version numbers.
UDisplayOptionsPluralCategory getPluralCategory() const
Gets the plural category.
UDisplayOptionsNounClass getNounClass() const
Gets the noun class.
DisplayOptions build()
Builds the display options.
Builder & setNounClass(UDisplayOptionsNounClass nounClass)
Sets the noun class.
UDisplayOptionsSubstituteHandling
Represents all the substitute handling.
UDisplayOptionsSubstituteHandling getSubstituteHandling() const
Gets the substitute handling.
UDisplayOptionsNameStyle getNameStyle() const
Gets the dialect handling.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Responsible for building DisplayOptions.
Represents all the display options that are supported by CLDR such as grammatical case...
C API: Display options (enum types, values, helper functions)
Builder & setDisplayLength(UDisplayOptionsDisplayLength displayLength)
Sets the display length.
UDisplayOptionsGrammaticalCase
Represents all the grammatical cases that are supported by CLDR.
Builder & setPluralCategory(UDisplayOptionsPluralCategory pluralCategory)
Sets the plural category.
Builder & setNameStyle(UDisplayOptionsNameStyle nameStyle)
Sets the dialect handling.
Builder & setSubstituteHandling(UDisplayOptionsSubstituteHandling substituteHandling)
Sets the substitute handling.
UDisplayOptionsPluralCategory
Standard CLDR plural form/category constants.
Builder & setGrammaticalCase(UDisplayOptionsGrammaticalCase grammaticalCase)
Sets the grammatical case.
UDisplayOptionsCapitalization getCapitalization() const
Gets the capitalization.
UDisplayOptionsNounClass
Represents all the grammatical noun classes that are supported by CLDR.
UDisplayOptionsDisplayLength
Represents all the display lengths.
Basic definitions for ICU, for both C and C++ APIs.
UDisplayOptionsDisplayLength getDisplayLength() const
Gets the display length.
UDisplayOptionsNameStyle
Represents all the dialect handlings.
UDisplayOptionsCapitalization
Represents all the capitalization options.