mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-21275 Remove obsolete functions from numberrangeformatter.h
This commit is contained in:
parent
048e46674a
commit
8196fc14ac
2 changed files with 0 additions and 53 deletions
|
@ -52,16 +52,6 @@ UPRV_FORMATTED_VALUE_SUBCLASS_AUTO_IMPL(FormattedNumberRange)
|
|||
|
||||
#define UPRV_NOARG
|
||||
|
||||
UnicodeString FormattedNumberRange::getFirstDecimal(UErrorCode& status) const {
|
||||
UPRV_FORMATTED_VALUE_METHOD_GUARD(ICU_Utility::makeBogusString())
|
||||
return fData->quantity1.toScientificString();
|
||||
}
|
||||
|
||||
UnicodeString FormattedNumberRange::getSecondDecimal(UErrorCode& status) const {
|
||||
UPRV_FORMATTED_VALUE_METHOD_GUARD(ICU_Utility::makeBogusString())
|
||||
return fData->quantity2.toScientificString();
|
||||
}
|
||||
|
||||
void FormattedNumberRange::getDecimalNumbers(ByteSink& sink1, ByteSink& sink2, UErrorCode& status) const {
|
||||
UPRV_FORMATTED_VALUE_METHOD_GUARD(UPRV_NOARG)
|
||||
impl::DecNum decnum1;
|
||||
|
|
|
@ -608,49 +608,6 @@ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
|
|||
/** @copydoc FormattedValue::nextPosition() */
|
||||
UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const U_OVERRIDE;
|
||||
|
||||
#ifndef U_HIDE_DEPRECATED_API
|
||||
/**
|
||||
* Export the first formatted number as a decimal number. This endpoint
|
||||
* is useful for obtaining the exact number being printed after scaling
|
||||
* and rounding have been applied by the number range formatting pipeline.
|
||||
*
|
||||
* The syntax of the unformatted number is a "numeric string"
|
||||
* as defined in the Decimal Arithmetic Specification, available at
|
||||
* http://speleotrove.com/decimal
|
||||
*
|
||||
* TODO(ICU-21275): This function will be removed in ICU 69.
|
||||
* Use getDecimalNumbers() instead.
|
||||
*
|
||||
* @param status Set if an error occurs.
|
||||
* @return A decimal representation of the first formatted number.
|
||||
* @deprecated ICU 68 Use getDecimalNumbers instead.
|
||||
* @see NumberRangeFormatter
|
||||
* @see #getSecondDecimal
|
||||
*/
|
||||
UnicodeString getFirstDecimal(UErrorCode& status) const;
|
||||
|
||||
/**
|
||||
* Export the second formatted number as a decimal number. This endpoint
|
||||
* is useful for obtaining the exact number being printed after scaling
|
||||
* and rounding have been applied by the number range formatting pipeline.
|
||||
*
|
||||
* The syntax of the unformatted number is a "numeric string"
|
||||
* as defined in the Decimal Arithmetic Specification, available at
|
||||
* http://speleotrove.com/decimal
|
||||
*
|
||||
* TODO(ICU-21275): This function will be removed in ICU 69.
|
||||
* Use getDecimalNumbers() instead.
|
||||
*
|
||||
* @param status Set if an error occurs.
|
||||
* @return A decimal representation of the second formatted number.
|
||||
* @deprecated ICU 68 Use getDecimalNumbers instead.
|
||||
* @see NumberRangeFormatter
|
||||
* @see #getFirstDecimal
|
||||
*/
|
||||
UnicodeString getSecondDecimal(UErrorCode& status) const;
|
||||
#endif // U_HIDE_DEPRECATED_API
|
||||
|
||||
|
||||
#ifndef U_HIDE_DRAFT_API
|
||||
/**
|
||||
* Extracts the formatted range as a pair of decimal numbers. This endpoint
|
||||
|
|
Loading…
Add table
Reference in a new issue