mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-13574 Adding missing const qualified to getConstDigitSymbol().
X-SVN-Rev: 40860
This commit is contained in:
parent
f4a623e94b
commit
8c2576ee68
1 changed files with 5 additions and 2 deletions
|
@ -422,9 +422,12 @@ public:
|
|||
* to accessing the symbol from getConstSymbol with the corresponding
|
||||
* key, such as kZeroDigitSymbol or kOneDigitSymbol.
|
||||
*
|
||||
* @param digit The digit, an integer between 0 and 9 inclusive.
|
||||
* If outside the range 0 to 9, the zero digit is returned.
|
||||
* @return the format symbol for the given digit.
|
||||
* @internal This API is currently for ICU use only.
|
||||
*/
|
||||
inline const UnicodeString& getConstDigitSymbol(int32_t digit);
|
||||
inline const UnicodeString& getConstDigitSymbol(int32_t digit) const;
|
||||
|
||||
/**
|
||||
* Returns that pattern stored in currecy info. Internal API for use by NumberFormat API.
|
||||
|
@ -510,7 +513,7 @@ DecimalFormatSymbols::getConstSymbol(ENumberFormatSymbol symbol) const {
|
|||
return *strPtr;
|
||||
}
|
||||
|
||||
inline const UnicodeString& DecimalFormatSymbols::getConstDigitSymbol(int32_t digit) {
|
||||
inline const UnicodeString& DecimalFormatSymbols::getConstDigitSymbol(int32_t digit) const {
|
||||
if (digit < 0 || digit > 9) {
|
||||
digit = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue