Represents all the display options that are supported by CLDR such as grammatical case, noun class, ... etc.
More...
#include <displayoptions.h>
|
static Builder | builder () |
| Creates a builder with the UNDEFINED values for all the parameters.
|
|
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 & setGrammaticalCase(UDisplayOptionsGrammaticalCase grammaticalCase)
Sets the grammatical case.
DisplayOptions build()
Builds the display options.
Builder & setPluralCategory(UDisplayOptionsPluralCategory pluralCategory)
Sets the plural category.
Represents all the display options that are supported by CLDR such as grammatical case,...
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()
Gets the grammatical case.
- Returns
- UDisplayOptionsGrammaticalCase
- Stable
- ICU 72
Definition at line 179 of file displayoptions.h.
◆ 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: