Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE int32_t U_EXPORT2 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. This function may perform re-ordering of the arguments depending on the locale. For all numeric arguments, double is assumed unless the type is explicitly integer. All choice format arguments must be of type double.

locale The locale for which the message will be formatted
pattern The pattern specifying the message's format
patternLength The length of pattern
result A pointer to a buffer to receive the formatted message.
resultLength The maximum size of result.
parseError A pointer to UParseError to receive information about errors occurred during parsing.
ap A variable-length argument list containing the arguments specified
status A pointer to an UErrorCode to receive any errors in pattern.
The total buffer size needed; if greater than resultLength, the output was truncated. ICU 2.0

Definition at line 100 of file umsg.cpp.

    //argument checking defered to subsequent method calls
    UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status);
    int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status);
    return retVal;

Generated by  Doxygen 1.6.0   Back to index