ICU-9619 add const to getters

X-SVN-Rev: 34173
This commit is contained in:
Steven R. Loomis 2013-09-04 00:01:26 +00:00
parent d2d0d0d9f0
commit bc0dcf4cb0
2 changed files with 5 additions and 5 deletions

View File

@ -2615,7 +2615,7 @@ UBool DecimalFormat::subparse(const UnicodeString& text,
else {
if(!fBoolFlags.contains(UNUM_PARSE_NO_EXPONENT) || // don't parse if this is set unless..
fUseExponentialNotation /* should be: isScientificNotation() but it is not const (?!) see bug #9619 */) { // .. it's an exponent format - ignore setting and parse anyways
isScientificNotation()) { // .. it's an exponent format - ignore setting and parse anyways
const UnicodeString *tmp;
tmp = &getConstSymbol(DecimalFormatSymbols::kExponentialSymbol);
// TODO: CASE
@ -3679,7 +3679,7 @@ void DecimalFormat::setPadPosition(EPadPosition padPos) {
* @see #isExponentSignAlwaysShown
* @see #setExponentSignAlwaysShown
*/
UBool DecimalFormat::isScientificNotation() {
UBool DecimalFormat::isScientificNotation() const {
return fUseExponentialNotation;
}
@ -3742,7 +3742,7 @@ void DecimalFormat::setMinimumExponentDigits(int8_t minExpDig) {
* @see #getMinimumExponentDigits
* @see #setExponentSignAlwaysShown
*/
UBool DecimalFormat::isExponentSignAlwaysShown() {
UBool DecimalFormat::isExponentSignAlwaysShown() const {
return fExponentSignAlwaysShown;
}

View File

@ -1451,7 +1451,7 @@ public:
* @see #setExponentSignAlwaysShown
* @stable ICU 2.0
*/
virtual UBool isScientificNotation(void);
virtual UBool isScientificNotation(void) const;
/**
* Set whether or not scientific notation is used. When scientific notation
@ -1508,7 +1508,7 @@ public:
* @see #setExponentSignAlwaysShown
* @stable ICU 2.0
*/
virtual UBool isExponentSignAlwaysShown(void);
virtual UBool isExponentSignAlwaysShown(void) const;
/**
* Set whether the exponent sign is always shown. This has no effect