ICU 76.1 76.1
|
A NumberRangeFormatter that does not yet have a locale. More...
#include <numberrangeformatter.h>
Public Member Functions | |
LocalizedNumberRangeFormatter | locale (const icu::Locale &locale) const & |
Associate the given locale with the number range formatter. | |
LocalizedNumberRangeFormatter | locale (const icu::Locale &locale) && |
Overload of locale() for use on an rvalue reference. | |
UnlocalizedNumberRangeFormatter ()=default | |
Default constructor: puts the formatter into a valid but undefined state. | |
UnlocalizedNumberRangeFormatter (const UnlocalizedNumberRangeFormatter &other) | |
Returns a copy of this UnlocalizedNumberRangeFormatter. | |
UnlocalizedNumberRangeFormatter (UnlocalizedNumberRangeFormatter &&src) noexcept | |
Move constructor: The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state. | |
UnlocalizedNumberRangeFormatter & | operator= (const UnlocalizedNumberRangeFormatter &other) |
Copy assignment operator. | |
UnlocalizedNumberRangeFormatter & | operator= (UnlocalizedNumberRangeFormatter &&src) noexcept |
Move assignment operator: The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state. | |
Public Member Functions inherited from icu::number::NumberRangeFormatterSettings< UnlocalizedNumberRangeFormatter > | |
UnlocalizedNumberRangeFormatter | numberFormatterBoth (const UnlocalizedNumberFormatter &formatter) const & |
Sets the NumberFormatter instance to use for the numbers in the range. | |
UnlocalizedNumberRangeFormatter | numberFormatterFirst (const UnlocalizedNumberFormatter &formatterFirst) const & |
Sets the NumberFormatter instance to use for the first number in the range. | |
UnlocalizedNumberRangeFormatter | numberFormatterSecond (const UnlocalizedNumberFormatter &formatterSecond) const & |
Sets the NumberFormatter instance to use for the second number in the range. | |
UnlocalizedNumberRangeFormatter | collapse (UNumberRangeCollapse collapse) const & |
Sets the aggressiveness of "collapsing" fields across the range separator. | |
UnlocalizedNumberRangeFormatter | identityFallback (UNumberRangeIdentityFallback identityFallback) const & |
Sets the behavior when the two sides of the range are the same. | |
LocalPointer< UnlocalizedNumberRangeFormatter > | clone () const & |
Returns the current (Un)LocalizedNumberRangeFormatter as a LocalPointer wrapping a heap-allocated copy of the current object. | |
UBool | copyErrorTo (UErrorCode &outErrorCode) const |
Sets the UErrorCode if an error occurred in the fluent chain. |
Friends | |
class | NumberRangeFormatterSettings< UnlocalizedNumberRangeFormatter > |
class | NumberRangeFormatter |
class | LocalizedNumberRangeFormatter |
A NumberRangeFormatter that does not yet have a locale.
In order to format, a locale must be specified.
Instances of this class are immutable and thread-safe.
Definition at line 399 of file numberrangeformatter.h.
|
default |
Default constructor: puts the formatter into a valid but undefined state.
Referenced by operator=(), operator=(), UnlocalizedNumberRangeFormatter(), and UnlocalizedNumberRangeFormatter().
icu::number::UnlocalizedNumberRangeFormatter::UnlocalizedNumberRangeFormatter | ( | const UnlocalizedNumberRangeFormatter & | other | ) |
Returns a copy of this UnlocalizedNumberRangeFormatter.
References UnlocalizedNumberRangeFormatter().
|
noexcept |
Move constructor: The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state.
References UnlocalizedNumberRangeFormatter().
LocalizedNumberRangeFormatter icu::number::UnlocalizedNumberRangeFormatter::locale | ( | const icu::Locale & | locale | ) | && |
LocalizedNumberRangeFormatter icu::number::UnlocalizedNumberRangeFormatter::locale | ( | const icu::Locale & | locale | ) | const & |
UnlocalizedNumberRangeFormatter & icu::number::UnlocalizedNumberRangeFormatter::operator= | ( | const UnlocalizedNumberRangeFormatter & | other | ) |
|
noexcept |
Move assignment operator: The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state.
References UnlocalizedNumberRangeFormatter().
|
friend |
Definition at line 476 of file numberrangeformatter.h.
|
friend |
Definition at line 473 of file numberrangeformatter.h.
|
friend |
Definition at line 467 of file numberrangeformatter.h.