ICU 76.1 76.1
|
The MessageArguments
class represents the named arguments to a message.
More...
#include <messageformat2_arguments.h>
Public Member Functions | |
MessageArguments (const std::map< UnicodeString, Formattable > &args, UErrorCode &status) | |
Message arguments constructor, which takes a map and returns a container of arguments that can be passed to a MessageFormatter . | |
MessageArguments & | operator= (MessageArguments &&) noexcept |
Move operator: The source MessageArguments will be left in a valid but undefined state. | |
MessageArguments ()=default | |
Default constructor. | |
virtual | ~MessageArguments () |
Destructor. | |
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 | MessageContext |
The MessageArguments
class represents the named arguments to a message.
It is immutable and movable. It is not copyable.
Definition at line 59 of file messageformat2_arguments.h.
|
inline |
Message arguments constructor, which takes a map and returns a container of arguments that can be passed to a MessageFormatter
.
args | A reference to a map from strings (argument names) to message2::Formattable objects (argument values). The keys and values of the map are copied into the result. |
status | Input/output error code. |
Definition at line 72 of file messageformat2_arguments.h.
References U_FAILURE, and U_MEMORY_ALLOCATION_ERROR.
|
default |
Default constructor.
Returns an empty arguments mapping.
|
virtual |
Destructor.
|
noexcept |
Move operator: The source MessageArguments will be left in a valid but undefined state.
Definition at line 113 of file messageformat2_arguments.h.