Logo Search packages:      
Sourcecode: icu version File versions

void DecimalFormat::setPadPosition ( EPadPosition  padPos ) [virtual]

Set the position at which padding will take place. This is the location at which padding will be inserted if the result of format() is shorter than the format width. This has no effect unless padding is enabled.

Parameters:
padPosthe pad position, one of kPadBeforePrefix, kPadAfterPrefix, kPadBeforeSuffix, or kPadAfterSuffix.
See also:
setFormatWidth
getFormatWidth
setPadCharacter
getPadCharacterString
getPadPosition
EPadPosition ICU 2.0

<font face="helvetica" color="red">NEW</font> Set the position at which padding will take place. This is the location at which padding will be inserted if the result of format() is shorter than the format width. This has no effect unless padding is enabled.

Parameters:
padPosthe pad position, one of kPadBeforePrefix, kPadAfterPrefix, kPadBeforeSuffix, or kPadAfterSuffix.
See also:
setFormatWidth
getFormatWidth
setPadCharacter
getPadCharacter
getPadPosition
kPadBeforePrefix
kPadAfterPrefix
kPadBeforeSuffix
kPadAfterSuffix

Definition at line 3008 of file decimfmt.cpp.

Referenced by NumberFormatTest::TestPatterns2(), and unum_setAttribute().

                                                      {
    fPadPosition = padPos;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index