|
ICU4C 79
|
Structure encapsulating named options passed to a custom selector or formatter. More...
#include <messageformat2_formattable.h>
Public Member Functions | |
| FunctionOptionsMap | getOptions () const |
| Returns a map of all name-value pairs provided as options to this function. | |
| FunctionOptions | mergeOptions (const FunctionOptions &other, UErrorCode &) const |
| Returns a new FunctionOptions object containing all the key-value pairs from this and other. | |
| FunctionOptions () | |
| Default constructor. | |
| virtual | ~FunctionOptions () |
| Destructor. | |
| FunctionOptions & | operator= (FunctionOptions) noexcept |
| Assignment operator. | |
| FunctionOptions (const FunctionOptions &) | |
| Copy constructor. | |
| Public Member Functions inherited from icu::UObject | |
| virtual | ~UObject () |
| Destructor. | |
| virtual UClassID | getDynamicClassID () const |
| ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. | |
Friends | |
| class | MessageFormatter |
| class | StandardFunctions |
| void | swap (FunctionOptions &f1, FunctionOptions &f2) noexcept |
| Non-member swap function. | |
Structure encapsulating named options passed to a custom selector or formatter.
This class is immutable, movable and copyable.
Definition at line 491 of file messageformat2_formattable.h.
|
inline |
Default constructor.
Returns an empty mapping.
Definition at line 530 of file messageformat2_formattable.h.
Referenced by FunctionOptions(), mergeOptions(), operator=(), and swap.
|
virtual |
Destructor.
| icu::message2::FunctionOptions::FunctionOptions | ( | const FunctionOptions & | ) |
Copy constructor.
References FunctionOptions().
|
inline |
Returns a map of all name-value pairs provided as options to this function.
The syntactic order of options is not guaranteed to be preserved.
Definition at line 504 of file messageformat2_formattable.h.
| FunctionOptions icu::message2::FunctionOptions::mergeOptions | ( | const FunctionOptions & | other, |
| UErrorCode & | ) const |
Returns a new FunctionOptions object containing all the key-value pairs from this and other.
When this and other define options with the same name, this takes preference.
References FunctionOptions().
|
noexcept |
Assignment operator.
References FunctionOptions().
|
friend |
Definition at line 571 of file messageformat2_formattable.h.
|
friend |
Definition at line 572 of file messageformat2_formattable.h.
|
friend |
Non-member swap function.
| f1 | will get f2's contents |
| f2 | will get f1's contents |
Definition at line 546 of file messageformat2_formattable.h.
References FunctionOptions(), and swap.
Referenced by swap.