mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 02:07:15 +00:00
ICU-12931 Adding internal visibility ifdef around format(DecimalQuantity) methods in numfmt.h and decimfmt.h
X-SVN-Rev: 41285
This commit is contained in:
parent
51ad01151d
commit
6545bac22d
3 changed files with 8 additions and 3 deletions
|
@ -543,7 +543,7 @@ UnicodeString&
|
|||
NumberFormat::format(const number::impl::DecimalQuantity &number,
|
||||
UnicodeString& appendTo,
|
||||
FieldPosition& pos,
|
||||
UErrorCode &status) const {
|
||||
UErrorCode &status) const {
|
||||
// DecimalFormat overrides this function, and handles DigitList based big decimals.
|
||||
// Other subclasses (ChoiceFormat) do not (yet) handle DigitLists,
|
||||
// so this default implementation falls back to formatting decimal numbers as doubles.
|
||||
|
|
|
@ -1074,6 +1074,7 @@ class U_I18N_API DecimalFormat : public NumberFormat {
|
|||
UnicodeString& format(StringPiece number, UnicodeString& appendTo, FieldPositionIterator* posIter,
|
||||
UErrorCode& status) const U_OVERRIDE;
|
||||
|
||||
#ifndef U_HIDE_INTERNAL_API
|
||||
|
||||
/**
|
||||
* Format a decimal number.
|
||||
|
@ -1111,6 +1112,8 @@ class U_I18N_API DecimalFormat : public NumberFormat {
|
|||
UnicodeString& format(const number::impl::DecimalQuantity& number, UnicodeString& appendTo,
|
||||
FieldPosition& pos, UErrorCode& status) const U_OVERRIDE;
|
||||
|
||||
#endif // U_HIDE_INTERNAL_API
|
||||
|
||||
using NumberFormat::parse;
|
||||
|
||||
/**
|
||||
|
|
|
@ -555,7 +555,9 @@ public:
|
|||
UnicodeString& appendTo,
|
||||
FieldPositionIterator* posIter,
|
||||
UErrorCode& status) const;
|
||||
public:
|
||||
|
||||
#ifndef U_HIDE_INTERNAL_API
|
||||
|
||||
/**
|
||||
* Format a decimal number.
|
||||
* The number is a DecimalQuantity wrapper onto a floating point decimal number.
|
||||
|
@ -600,7 +602,7 @@ public:
|
|||
FieldPosition& pos,
|
||||
UErrorCode& status) const;
|
||||
|
||||
public:
|
||||
#endif // U_HIDE_INTERNAL_API
|
||||
|
||||
/**
|
||||
* Return a long if possible (e.g. within range LONG_MAX,
|
||||
|
|
Loading…
Add table
Reference in a new issue