Logo Search packages:      
Sourcecode: icu version File versions

UnicodeString & DecimalFormat::format ( double  number,
UnicodeString appendTo,
FieldPosition pos 
) const [virtual]

Format a double or long number using base-10 representation.

Parameters:
numberThe value to be formatted.
appendToOutput parameter to receive result. Result is appended to existing contents.
posOn input: an alignment field, if desired. On output: the offsets of the alignment field.
Returns:
Reference to 'appendTo' parameter. ICU 2.0

Implements NumberFormat.

Definition at line 974 of file decimfmt.cpp.

Referenced by NFSubstitution::doSubstitution(), format(), NumberFormatRegressionTest::Test4134034(), NumberFormatRegressionTest::Test4134300(), NumberFormatRegressionTest::Test4140009(), NumberFormatRegressionTest::Test4145457(), NumberFormatRegressionTest::Test4147706(), NumberFormatRegressionTest::Test4179818(), NumberFormatRegressionTest::Test4212072(), NumberFormatRegressionTest::Test4243011(), NumberFormatRegressionTest::Test4243108(), NumberFormatTest::TestAdoptDecimalFormatSymbols(), IntlTestDecimalFormatAPI::testAPI(), TestMessageFormat::testBug3(), IntlTestDateFormatAPI::TestNameHiding(), and IntlTestDecimalFormatSymbols::Verify().

{
    FieldPositionOnlyHandler handler(fieldPosition);
    return _format(number, appendTo, handler);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index