|
ICU 78.3 78.3
|
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 43 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 |
|
inline |
Gets the display length.
Definition at line 219 of file displayoptions.h.
|
inline |
|
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 |
|
inline |
|
default |
Copies the DisplayOptions.
| other | The options to copy. |
References DisplayOptions().
|
defaultnoexcept |
Moves the DisplayOptions.
| other | The options to move from. |
References DisplayOptions().