ICU 72.1
72.1
|
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 45 of file displayoptions.h.
|
default |
Copies the DisplayOptions.
other | The options to copy. |
|
static |
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. |
|
defaultnoexcept |
Moves the DisplayOptions.
other | The options to move from. |