ICU 76.1 76.1
|
An abstract base class for specifying settings related to number formatting. More...
#include <numberrangeformatter.h>
Friends | |
class | LocalizedNumberRangeFormatter |
class | UnlocalizedNumberRangeFormatter |
An abstract base class for specifying settings related to number formatting.
This class is implemented by UnlocalizedNumberRangeFormatter
and LocalizedNumberRangeFormatter
. This class is not intended for public subclassing.
Definition at line 131 of file numberrangeformatter.h.
LocalPointer< Derived > icu::number::NumberRangeFormatterSettings< Derived >::clone | ( | ) | && |
Overload of clone for use on an rvalue reference.
LocalPointer< Derived > icu::number::NumberRangeFormatterSettings< Derived >::clone | ( | ) | const & |
Returns the current (Un)LocalizedNumberRangeFormatter as a LocalPointer wrapping a heap-allocated copy of the current object.
This is equivalent to new-ing the move constructor with a value object as the argument.
Derived icu::number::NumberRangeFormatterSettings< Derived >::collapse | ( | UNumberRangeCollapse | collapse | ) | && |
Overload of collapse() for use on an rvalue reference.
collapse | The collapsing strategy to use for this range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::collapse | ( | UNumberRangeCollapse | collapse | ) | const & |
Sets the aggressiveness of "collapsing" fields across the range separator.
Possible values:
The default value is AUTO.
collapse | The collapsing strategy to use for this range. |
|
inline |
Sets the UErrorCode if an error occurred in the fluent chain.
Preserves older error codes in the outErrorCode.
Definition at line 363 of file numberrangeformatter.h.
References U_FAILURE.
Derived icu::number::NumberRangeFormatterSettings< Derived >::identityFallback | ( | UNumberRangeIdentityFallback | identityFallback | ) | && |
Overload of identityFallback() for use on an rvalue reference.
identityFallback | The strategy to use when formatting two numbers that end up being the same. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::identityFallback | ( | UNumberRangeIdentityFallback | identityFallback | ) | const & |
Sets the behavior when the two sides of the range are the same.
This could happen if the same two numbers are passed to the formatFormattableRange function, or if different numbers are passed to the function but they become the same after rounding rules are applied. Possible values:
The default value is APPROXIMATELY.
identityFallback | The strategy to use when formatting two numbers that end up being the same. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterBoth | ( | const UnlocalizedNumberFormatter & | formatter | ) | && |
Overload of numberFormatterBoth() for use on an rvalue reference.
formatter | The formatter to use for both numbers in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterBoth | ( | const UnlocalizedNumberFormatter & | formatter | ) | const & |
Sets the NumberFormatter instance to use for the numbers in the range.
The same formatter is applied to both sides of the range.
The NumberFormatter instances must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatter | The formatter to use for both numbers in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterBoth | ( | UnlocalizedNumberFormatter && | formatter | ) | && |
Overload of numberFormatterBoth() for use on an rvalue reference.
formatter | The formatter to use for both numbers in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterBoth | ( | UnlocalizedNumberFormatter && | formatter | ) | const & |
Overload of numberFormatterBoth() for use on an rvalue reference.
formatter | The formatter to use for both numbers in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterFirst | ( | const UnlocalizedNumberFormatter & | formatterFirst | ) | && |
Overload of numberFormatterFirst() for use on an rvalue reference.
formatterFirst | The formatter to use for the first number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterFirst | ( | const UnlocalizedNumberFormatter & | formatterFirst | ) | const & |
Sets the NumberFormatter instance to use for the first number in the range.
The NumberFormatter instances must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatterFirst | The formatter to use for the first number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterFirst | ( | UnlocalizedNumberFormatter && | formatterFirst | ) | && |
Overload of numberFormatterFirst() for use on an rvalue reference.
formatterFirst | The formatter to use for the first number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterFirst | ( | UnlocalizedNumberFormatter && | formatterFirst | ) | const & |
Overload of numberFormatterFirst() for use on an rvalue reference.
formatterFirst | The formatter to use for the first number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterSecond | ( | const UnlocalizedNumberFormatter & | formatterSecond | ) | && |
Overload of numberFormatterSecond() for use on an rvalue reference.
formatterSecond | The formatter to use for the second number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterSecond | ( | const UnlocalizedNumberFormatter & | formatterSecond | ) | const & |
Sets the NumberFormatter instance to use for the second number in the range.
The NumberFormatter instances must not have a locale applied yet; the locale specified on the NumberRangeFormatter will be used.
formatterSecond | The formatter to use for the second number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterSecond | ( | UnlocalizedNumberFormatter && | formatterSecond | ) | && |
Overload of numberFormatterSecond() for use on an rvalue reference.
formatterSecond | The formatter to use for the second number in the range. |
Derived icu::number::NumberRangeFormatterSettings< Derived >::numberFormatterSecond | ( | UnlocalizedNumberFormatter && | formatterSecond | ) | const & |
Overload of numberFormatterSecond() for use on an rvalue reference.
formatterSecond | The formatter to use for the second number in the range. |
Definition at line 380 of file numberrangeformatter.h.
Definition at line 381 of file numberrangeformatter.h.