23 #if !UCONFIG_NO_FORMATTING
178 const UChar *pattern,
179 int32_t patternLength,
181 int32_t resultLength,
205 const UChar *pattern,
206 int32_t patternLength,
208 int32_t resultLength,
230 const UChar *pattern,
231 int32_t patternLength,
233 int32_t sourceLength,
255 const UChar *pattern,
256 int32_t patternLength,
258 int32_t sourceLength,
284 const UChar *pattern,
285 int32_t patternLength,
287 int32_t resultLength,
313 const UChar *pattern,
314 int32_t patternLength,
316 int32_t resultLength,
341 const UChar *pattern,
342 int32_t patternLength,
344 int32_t sourceLength,
369 const UChar *pattern,
370 int32_t patternLength,
372 int32_t sourceLength,
399 int32_t patternLength,
413 #if U_SHOW_CPLUSPLUS_API
479 const UChar* pattern,
480 int32_t patternLength,
498 int32_t resultLength,
519 int32_t resultLength,
541 int32_t resultLength,
562 int32_t sourceLength,
585 int32_t sourceLength,
616 int32_t patternLength,
618 int32_t destCapacity,
void u_vparseMessage(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UErrorCode *status)
Parse a message.
int32_t u_vformatMessage(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, va_list ap, UErrorCode *status)
Format a message for a locale.
void umsg_parse(const UMessageFormat *fmt, const UChar *source, int32_t sourceLength, int32_t *count, UErrorCode *status,...)
Parse a message.
int32_t umsg_autoQuoteApostrophe(const UChar *pattern, int32_t patternLength, UChar *dest, int32_t destCapacity, UErrorCode *ec)
Convert an 'apostrophe-friendly' pattern into a standard pattern.
const char * umsg_getLocale(const UMessageFormat *fmt)
Gets the locale.
int32_t u_vformatMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError *parseError, va_list ap, UErrorCode *status)
Format a message for a locale.
int32_t umsg_vformat(const UMessageFormat *fmt, UChar *result, int32_t resultLength, va_list ap, UErrorCode *status)
Format a message for a locale.
void u_parseMessage(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UErrorCode *status,...)
Parse a message.
void umsg_close(UMessageFormat *format)
Close a UMessageFormat.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
void umsg_vparse(const UMessageFormat *fmt, const UChar *source, int32_t sourceLength, int32_t *count, va_list ap, UErrorCode *status)
Parse a message.
int32_t u_formatMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UParseError *parseError, UErrorCode *status,...)
Format a message for a locale.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
void * UMessageFormat
The message format object.
int32_t umsg_toPattern(const UMessageFormat *fmt, UChar *result, int32_t resultLength, UErrorCode *status)
Gets the pattern.
UMessageFormat * umsg_open(const UChar *pattern, int32_t patternLength, const char *locale, UParseError *parseError, UErrorCode *status)
Open a message formatter with given pattern and for the given locale.
void umsg_setLocale(UMessageFormat *fmt, const char *locale)
Sets the locale.
int32_t umsg_format(const UMessageFormat *fmt, UChar *result, int32_t resultLength, UErrorCode *status,...)
Format a message for a locale.
UMessageFormat umsg_clone(const UMessageFormat *fmt, UErrorCode *status)
Open a copy of a UMessageFormat.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
C API: Parse Error Information.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
void u_parseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, UParseError *parseError, UErrorCode *status,...)
Parse a message.
A UParseError struct is used to returned detailed information about parsing errors.
void u_vparseMessageWithError(const char *locale, const UChar *pattern, int32_t patternLength, const UChar *source, int32_t sourceLength, va_list ap, UParseError *parseError, UErrorCode *status)
Parse a message.
Basic definitions for ICU, for both C and C++ APIs.
void umsg_applyPattern(UMessageFormat *fmt, const UChar *pattern, int32_t patternLength, UParseError *parseError, UErrorCode *status)
Sets the pattern.
int32_t u_formatMessage(const char *locale, const UChar *pattern, int32_t patternLength, UChar *result, int32_t resultLength, UErrorCode *status,...)
Format a message for a locale.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.