6 #ifndef MESSAGEFORMAT2_ARGUMENTS_H 7 #define MESSAGEFORMAT2_ARGUMENTS_H 9 #if U_SHOW_CPLUSPLUS_API 11 #if !UCONFIG_NO_NORMALIZATION 13 #if !UCONFIG_NO_FORMATTING 22 #include "unicode/messageformat2_data_model_names.h" 23 #include "unicode/messageformat2_formattable.h" 26 #ifndef U_HIDE_DEPRECATED_API 34 class MessageFormatter;
66 if (!argumentNames.isValid() || !arguments.isValid()) {
71 for (
auto iter = args.begin(); iter != args.end(); ++iter) {
72 argumentNames[i] = iter->first;
73 arguments[i] = iter->second;
101 friend class MessageContext;
117 #endif // U_HIDE_DEPRECATED_API 127 #endif // MESSAGEFORMAT2_ARGUMENTS_H #define U_FAILURE(x)
Does the error code indicate a failure?
The MessageArguments class represents the named arguments to a message.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
#define U_I18N_API_CLASS
Set to export library symbols from inside the i18n library, and to import them from outside...
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
U_I18N_API 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 pas...
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
UObject is the common ICU "boilerplate" class.