ICU-3668 make getters const

X-SVN-Rev: 14798
This commit is contained in:
Alan Liu 2004-03-29 23:23:04 +00:00
parent 3589fc94d2
commit 689390169c
2 changed files with 10 additions and 10 deletions

View file

@ -1982,7 +1982,7 @@ DecimalFormat::setMultiplier(int32_t newValue)
* @see #getRoundingMode
* @see #setRoundingMode
*/
double DecimalFormat::getRoundingIncrement() {
double DecimalFormat::getRoundingIncrement() const {
return fRoundingDouble;
}
@ -2041,7 +2041,7 @@ void DecimalFormat::setRoundingMode(ERoundingMode roundingMode) {
* @see #getPadPosition
* @see #setPadPosition
*/
int32_t DecimalFormat::getFormatWidth() {
int32_t DecimalFormat::getFormatWidth() const {
return fFormatWidth;
}
@ -2061,7 +2061,7 @@ void DecimalFormat::setFormatWidth(int32_t width) {
fFormatWidth = (width > 0) ? width : 0;
}
UnicodeString DecimalFormat::getPadCharacterString() {
UnicodeString DecimalFormat::getPadCharacterString() const {
return fPad;
}
@ -2091,7 +2091,7 @@ void DecimalFormat::setPadCharacter(const UnicodeString &padChar) {
* @see #kPadBeforeSuffix
* @see #kPadAfterSuffix
*/
DecimalFormat::EPadPosition DecimalFormat::getPadPosition() {
DecimalFormat::EPadPosition DecimalFormat::getPadPosition() const {
return fPadPosition;
}
@ -2154,7 +2154,7 @@ void DecimalFormat::setScientificNotation(UBool useScientific) {
* @see #isExponentSignAlwaysShown
* @see #setExponentSignAlwaysShown
*/
int8_t DecimalFormat::getMinimumExponentDigits() {
int8_t DecimalFormat::getMinimumExponentDigits() const {
return fMinExponentDigits;
}

View file

@ -1007,7 +1007,7 @@ public:
* @see #setRoundingMode
* @stable ICU 2.0
*/
virtual double getRoundingIncrement(void);
virtual double getRoundingIncrement(void) const;
/**
* Set the rounding increment. This method also controls whether
@ -1053,7 +1053,7 @@ public:
* @see #setPadPosition
* @stable ICU 2.0
*/
virtual int32_t getFormatWidth(void);
virtual int32_t getFormatWidth(void) const;
/**
* Set the width to which the output of format() is padded.
@ -1083,7 +1083,7 @@ public:
* @see #setPadPosition
* @stable ICU 2.0
*/
virtual UnicodeString getPadCharacterString();
virtual UnicodeString getPadCharacterString() const;
/**
* Set the character used to pad to the format width. If padding
@ -1119,7 +1119,7 @@ public:
* @see #kPadAfterSuffix
* @stable ICU 2.0
*/
virtual EPadPosition getPadPosition(void);
virtual EPadPosition getPadPosition(void) const;
/**
* Set the position at which padding will take place. This is the location
@ -1181,7 +1181,7 @@ public:
* @see #setExponentSignAlwaysShown
* @stable ICU 2.0
*/
virtual int8_t getMinimumExponentDigits(void);
virtual int8_t getMinimumExponentDigits(void) const;
/**
* Set the minimum exponent digits that will be shown. This has no