6 #ifndef MESSAGEFORMAT2_ARGUMENTS_H 7 #define MESSAGEFORMAT2_ARGUMENTS_H 9 #if U_SHOW_CPLUSPLUS_API 11 #if !UCONFIG_NO_FORMATTING 20 #include "unicode/messageformat2_data_model_names.h" 21 #include "unicode/messageformat2_formattable.h" 24 #ifndef U_HIDE_DEPRECATED_API 36 #if U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN 37 template class U_I18N_API LocalPointerBase<UnicodeString>;
38 template class U_I18N_API LocalPointerBase<message2::Formattable>;
39 template class U_I18N_API LocalArray<UnicodeString>;
40 template class U_I18N_API LocalArray<message2::Formattable>;
78 if (!argumentNames.isValid() || !arguments.isValid()) {
83 for (
auto iter = args.begin(); iter != args.end(); ++iter) {
84 argumentNames[i] = iter->first;
85 arguments[i] = iter->second;
113 friend class MessageContext;
128 #endif // U_HIDE_DEPRECATED_API 136 #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...
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...
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
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.