Represents all the display options that are supported by CLDR such as grammatical case, noun class, ... etc.
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 & 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
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 45 of file displayoptions.h.
◆ DisplayOptions()
Copies the DisplayOptions.
- Parameters
-
other | The options to copy. |
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
◆ builder()
static Builder icu::DisplayOptions::builder |
( |
| ) |
|
|
static |
Creates a builder with the UNDEFINED
values for all the parameters.
- Returns
- Builder
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
◆ copyToBuilder()
Builder icu::DisplayOptions::copyToBuilder |
( |
| ) |
const |
Creates a builder with the same parameters from this object.
- Returns
- Builder
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
◆ getCapitalization()
Gets the capitalization.
- Returns
- UDisplayOptionsCapitalization
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 205 of file displayoptions.h.
◆ getDisplayLength()
Gets the display length.
- Returns
- UDisplayOptionsDisplayLength
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 221 of file displayoptions.h.
◆ getGrammaticalCase()
Gets the grammatical case.
- Returns
- UDisplayOptionsGrammaticalCase
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 181 of file displayoptions.h.
◆ getNameStyle()
Gets the dialect handling.
- Returns
- UDisplayOptionsNameStyle
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 213 of file displayoptions.h.
◆ getNounClass()
Gets the noun class.
- Returns
- UDisplayOptionsNounClass
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 189 of file displayoptions.h.
◆ getPluralCategory()
Gets the plural category.
- Returns
- UDisplayOptionsPluralCategory
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 197 of file displayoptions.h.
◆ getSubstituteHandling()
Gets the substitute handling.
- Returns
- UDisplayOptionsSubstituteHandling
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
Definition at line 229 of file displayoptions.h.
◆ operator=() [1/2]
Copies the DisplayOptions.
- Parameters
-
other | The options to copy. |
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
◆ operator=() [2/2]
Moves the DisplayOptions.
- Parameters
-
other | The options to move from. |
- Draft:
- This API may be changed in the future versions and was introduced in ICU 72
The documentation for this class was generated from the following file: