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.
 UnlocalizedNumberFormatter (const UnlocalizedNumberFormatter &other)
 Returns a copy of this UnlocalizedNumberFormatter.

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.

See also:
NumberFormatter
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Definition at line 1731 of file numberformatter.h.


Constructor & Destructor Documentation

icu::number::UnlocalizedNumberFormatter::UnlocalizedNumberFormatter ( const UnlocalizedNumberFormatter other  )  [inline]

Returns a copy of this UnlocalizedNumberFormatter.

Draft:
This API may be changed in the future versions and was introduced in ICU 60

Definition at line 1758 of file numberformatter.h.


Member Function Documentation

LocalizedNumberFormatter icu::number::UnlocalizedNumberFormatter::locale ( const icu::Locale locale  )  const

Associate the given locale with the number formatter.

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

To use the Java default locale, call Locale::getDefault():

 NumberFormatter::with(). ... .locale(Locale::getDefault())
 
Parameters:
locale The locale to use when loading data for number formatting.
Returns:
The fluent chain.
Draft:
This API may be changed in the future versions and was introduced in ICU 60

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

Generated on 11 May 2018 for ICU 60.1 by  doxygen 1.6.1