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

UnicodeString & RuleBasedNumberFormat::format ( double  number,
UnicodeString toAppendTo,
FieldPosition pos 
) const [virtual]

Formats the specified number using the default ruleset.

number The number to format.
toAppendTo the string that will hold the (appended) result
pos the fieldposition
A textual representation of the number. ICU 2.0

Implements NumberFormat.

Definition at line 1064 of file rbnf.cpp.

References UnicodeString::length().

    if (defaultRuleSet) defaultRuleSet->format(number, toAppendTo, toAppendTo.length());
    return toAppendTo;

Generated by  Doxygen 1.6.0   Back to index