|
ICU 78.3
78.3
|
Represents all the display options that are supported by CLDR such as grammatical case, noun class, ... More...
#include <displayoptions.h>
Data Structures | |
| class | Builder |
Responsible for building DisplayOptions. More... | |
Static Public Member Functions | |
| static Builder | builder () |
Creates a builder with the UNDEFINED values for all the parameters. More... | |
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: ``` DisplayOptions x = DisplayOptions::builder(). .setGrammaticalCase(UDISPOPT_GRAMMATICAL_CASE_DATIVE) .setPluralCategory(UDISPOPT_PLURAL_CATEGORY_FEW) .build(); ```
Definition at line 43 of file displayoptions.h.
|
default |
|
static |
| Builder icu::DisplayOptions::copyToBuilder | ( | ) | const |
|
inline |
Gets the capitalization.
Definition at line 203 of file displayoptions.h.
|
inline |
Gets the display length.
Definition at line 219 of file displayoptions.h.
|
inline |
Gets the grammatical case.
Definition at line 179 of file displayoptions.h.
|
inline |
Gets the dialect handling.
Definition at line 211 of file displayoptions.h.
|
inline |
Gets the noun class.
Definition at line 187 of file displayoptions.h.
|
inline |
Gets the plural category.
Definition at line 195 of file displayoptions.h.
|
inline |
Gets the substitute handling.
Definition at line 227 of file displayoptions.h.
|
default |
|
defaultnoexcept |
1.8.5