Logo Search packages:      
Sourcecode: icu version File versions  Download package

UnicodeString & Format::format ( const Formattable obj,
UnicodeString appendTo,
UErrorCode status 
) const [inherited]

Formats an object to produce a string.

objThe object to format.
appendToOutput parameter to receive result. Result is appended to existing contents.
statusOutput parameter filled in with success or failure status.
Reference to 'appendTo' parameter. ICU 2.0

Reimplemented in DecimalFormat, RuleBasedNumberFormat, MessageFormat, NumberFormat, SimpleDateFormat, ChoiceFormat, and DateFormat.

Definition at line 105 of file format.cpp.

References U_FAILURE.

Referenced by MessageFormat::format().

    if (U_FAILURE(status)) return toAppendTo;

    FieldPosition pos(FieldPosition::DONT_CARE);

    return format(obj, toAppendTo, pos, status);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index