|
ICU 73.2 73.2
|
Represents all the display options that are supported by CLDR such as grammatical case, noun class, ... etc. More...
#include <displayoptions.h>
Data Structures | |
| class | Builder |
Responsible for building DisplayOptions. More... | |
Public Member Functions | |
| Builder | copyToBuilder () const |
| Creates a builder with the same parameters from this object. | |
| UDisplayOptionsGrammaticalCase | getGrammaticalCase () const |
| Gets the grammatical case. | |
| UDisplayOptionsNounClass | getNounClass () const |
| Gets the noun class. | |
| UDisplayOptionsPluralCategory | getPluralCategory () const |
| Gets the plural category. | |
| UDisplayOptionsCapitalization | getCapitalization () const |
| Gets the capitalization. | |
| UDisplayOptionsNameStyle | getNameStyle () const |
| Gets the dialect handling. | |
| UDisplayOptionsDisplayLength | getDisplayLength () const |
| Gets the display length. | |
| UDisplayOptionsSubstituteHandling | getSubstituteHandling () const |
| Gets the substitute handling. | |
| DisplayOptions & | operator= (const DisplayOptions &other)=default |
| Copies the DisplayOptions. | |
| DisplayOptions & | operator= (DisplayOptions &&other) noexcept=default |
| Moves the DisplayOptions. | |
| DisplayOptions (const DisplayOptions &other)=default | |
| Copies the DisplayOptions. | |
Static Public Member Functions | |
| 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:
Definition at line 45 of file displayoptions.h.
|
default |
Copies the DisplayOptions.
| other | The options to copy. |
References builder(), and DisplayOptions().
Referenced by DisplayOptions(), operator=(), and operator=().
|
static |
Creates a builder with the UNDEFINED values for all the parameters.
Referenced by DisplayOptions().
| Builder icu::DisplayOptions::copyToBuilder | ( | ) | const |
|
inline |
Gets the capitalization.
Definition at line 205 of file displayoptions.h.
|
inline |
Gets the display length.
Definition at line 221 of file displayoptions.h.
|
inline |
Gets the grammatical case.
Definition at line 181 of file displayoptions.h.
|
inline |
Gets the dialect handling.
Definition at line 213 of file displayoptions.h.
|
inline |
Gets the noun class.
Definition at line 189 of file displayoptions.h.
|
inline |
Gets the plural category.
Definition at line 197 of file displayoptions.h.
|
inline |
Gets the substitute handling.
Definition at line 229 of file displayoptions.h.
|
default |
Copies the DisplayOptions.
| other | The options to copy. |
References DisplayOptions().
|
defaultnoexcept |
Moves the DisplayOptions.
| other | The options to move from. |
References DisplayOptions().