ICU 73.2  73.2
Public Member Functions | Friends
icu::number::UnlocalizedNumberFormatter Class Reference

A NumberFormatter that does not yet have a locale. More...

#include <numberformatter.h>

Inheritance diagram for icu::number::UnlocalizedNumberFormatter:
icu::number::NumberFormatterSettings< UnlocalizedNumberFormatter > icu::UMemory

Public Member Functions

LocalizedNumberFormatter locale (const icu::Locale &locale) const &
 Associate the given locale with the number formatter.
LocalizedNumberFormatter locale (const icu::Locale &locale)&&
 Overload of locale() for use on an rvalue reference.
 UnlocalizedNumberFormatter ()
 Default constructor: puts the formatter into a valid but undefined state.
 UnlocalizedNumberFormatter (const UnlocalizedNumberFormatter &other)
 Returns a copy of this UnlocalizedNumberFormatter.
 UnlocalizedNumberFormatter (UnlocalizedNumberFormatter &&src) noexcept
 Move constructor: The source UnlocalizedNumberFormatter will be left in a valid but undefined state.
UnlocalizedNumberFormatteroperator= (const UnlocalizedNumberFormatter &other)
 Copy assignment operator.
UnlocalizedNumberFormatteroperator= (UnlocalizedNumberFormatter &&src) noexcept
 Move assignment operator: The source UnlocalizedNumberFormatter will be left in a valid but undefined state.

Friends

class NumberFormatterSettings< UnlocalizedNumberFormatter >
class NumberFormatter

Detailed Description

A NumberFormatter that does not yet have a locale.

In order to format numbers, a locale must be specified.

Instances of this class are immutable and thread-safe.

See also:
NumberFormatter
Stable:
ICU 60

Definition at line 2434 of file numberformatter.h.


Constructor & Destructor Documentation

Default constructor: puts the formatter into a valid but undefined state.

Stable:
ICU 62

Returns a copy of this UnlocalizedNumberFormatter.

Stable:
ICU 60

Move constructor: The source UnlocalizedNumberFormatter will be left in a valid but undefined state.

Stable:
ICU 62

Member Function Documentation

Associate the given locale with the number formatter.

The locale is used for picking the appropriate symbols, formats, and other data for number display.

Parameters:
localeThe locale to use when loading data for number formatting.
Returns:
The fluent chain.
Stable:
ICU 60

Overload of locale() for use on an rvalue reference.

Parameters:
localeThe locale to use when loading data for number formatting.
Returns:
The fluent chain.
See also:
locale
Stable:
ICU 62
UnlocalizedNumberFormatter& icu::number::UnlocalizedNumberFormatter::operator= ( const UnlocalizedNumberFormatter other)

Copy assignment operator.

Stable:
ICU 62
UnlocalizedNumberFormatter& icu::number::UnlocalizedNumberFormatter::operator= ( UnlocalizedNumberFormatter &&  src)

Move assignment operator: The source UnlocalizedNumberFormatter will be left in a valid but undefined state.

Stable:
ICU 62

The documentation for this class was generated from the following file: