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__
UDisplayOptionsPluralCategory getPluralCategory() const
Gets the plural category.
Builder & setCapitalization(UDisplayOptionsCapitalization capitalization)
Sets the capitalization.
C API: API for accessing ICU version numbers.
DisplayOptions build()
Builds the display options.
Builder & setNounClass(UDisplayOptionsNounClass nounClass)
Sets the noun class.
UDisplayOptionsSubstituteHandling
Represents all the substitute 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.
UDisplayOptionsNameStyle getNameStyle() const
Gets the dialect handling.
Represents all the display options that are supported by CLDR such as grammatical case...
UDisplayOptionsSubstituteHandling getSubstituteHandling() const
Gets the substitute handling.
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.
UDisplayOptionsDisplayLength getDisplayLength() const
Gets the display length.
Builder & setSubstituteHandling(UDisplayOptionsSubstituteHandling substituteHandling)
Sets the substitute handling.
UDisplayOptionsCapitalization getCapitalization() const
Gets the capitalization.
UDisplayOptionsPluralCategory
Standard CLDR plural form/category constants.
UDisplayOptionsGrammaticalCase getGrammaticalCase() const
Gets the grammatical case.
UDisplayOptionsNounClass getNounClass() const
Gets the noun class.
Builder & setGrammaticalCase(UDisplayOptionsGrammaticalCase grammaticalCase)
Sets the grammatical case.
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.
UDisplayOptionsNameStyle
Represents all the dialect handlings.
UDisplayOptionsCapitalization
Represents all the capitalization options.