Logo Search packages:      
Sourcecode: icu version File versions

void DecimalFormat::setPadCharacter ( const UnicodeString padChar ) [virtual]

Set the character used to pad to the format width. If padding is not enabled, then this will take effect if padding is later enabled.

padChara string containing the pad charcter. If the string has length 0, then the pad characer is set to ' '. Otherwise padChar.char32At(0) will be used as the pad character.
See also:
setPadPosition ICU 2.0

Definition at line 2959 of file decimfmt.cpp.

References UnicodeString::char32At(), and UnicodeString::length().

Referenced by NumberFormatTest::TestPad(), NumberFormatTest::TestPatterns2(), and unum_setTextAttribute().

    if (padChar.length() > 0) {
        fPad = padChar.char32At(0);
    else {
        fPad = kDefaultPad;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index