Represents all the display options that are supported by CLDR such as grammatical case, noun class, ...
More...
#include <displayoptions.h>
Represents all the display options that are supported by CLDR such as grammatical case, noun class, ...
etc. It currently supports enums, but may be extended in the future to have other types of data. It replaces a DisplayContext[] as a method parameter.
NOTE: This class is Immutable, and uses a Builder interface.
For example:
Builder & setPluralCategory(UDisplayOptionsPluralCategory pluralCategory)
Sets the plural category.
DisplayOptions build()
Builds the display options.
Builder & setGrammaticalCase(UDisplayOptionsGrammaticalCase grammaticalCase)
Sets the grammatical case.
DisplayOptions(const DisplayOptions &other)=default
Copies the DisplayOptions.
static Builder builder()
Creates a builder with the UNDEFINED values for all the parameters.
@ UDISPOPT_PLURAL_CATEGORY_FEW
@ UDISPOPT_GRAMMATICAL_CASE_DATIVE
- Stable:
- ICU 72
Definition at line 43 of file displayoptions.h.
◆ DisplayOptions()
◆ builder()
static Builder icu::DisplayOptions::builder |
( |
| ) |
|
|
static |
Creates a builder with the UNDEFINED
values for all the parameters.
- Returns
- Builder
- Stable:
- ICU 72
◆ copyToBuilder()
Builder icu::DisplayOptions::copyToBuilder |
( |
| ) |
const |
Creates a builder with the same parameters from this object.
- Returns
- Builder
- Stable:
- ICU 72
◆ getCapitalization()
◆ getDisplayLength()
◆ getGrammaticalCase()
◆ getNameStyle()
◆ getNounClass()
◆ getPluralCategory()
◆ getSubstituteHandling()
Gets the substitute handling.
- Returns
- UDisplayOptionsSubstituteHandling
- Stable:
- ICU 72
Definition at line 227 of file displayoptions.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: