ICU 75.1 75.1
Loading...
Searching...
No Matches
Public Member Functions
icu::message2::FormatterFactory Class Referenceabstract

Interface that factory classes for creating formatters must implement. More...

#include <messageformat2_function_registry.h>

Inheritance diagram for icu::message2::FormatterFactory:
icu::UObject icu::UMemory

Public Member Functions

virtual FormattercreateFormatter (const Locale &locale, UErrorCode &status)=0
 Constructs a new formatter object.
 
virtual ~FormatterFactory ()
 Destructor.
 
FormatterFactoryoperator= (const FormatterFactory &)=delete
 Copy constructor.
 
- Public Member Functions inherited from icu::UObject
virtual ~UObject ()
 Destructor.
 
virtual UClassID getDynamicClassID () const
 ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
 

Detailed Description

Interface that factory classes for creating formatters must implement.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

Definition at line 37 of file messageformat2_function_registry.h.

Constructor & Destructor Documentation

◆ ~FormatterFactory()

virtual icu::message2::FormatterFactory::~FormatterFactory ( )
virtual

Destructor.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

Member Function Documentation

◆ createFormatter()

virtual Formatter * icu::message2::FormatterFactory::createFormatter ( const Locale locale,
UErrorCode status 
)
pure virtual

Constructs a new formatter object.

This method is not const; formatter factories with local state may be defined.

Parameters
localeLocale to be used by the formatter.
statusInput/output error code.
Returns
The new Formatter, which is non-null if U_SUCCESS(status).
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

◆ operator=()

FormatterFactory & icu::message2::FormatterFactory::operator= ( const FormatterFactory )
delete

Copy constructor.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

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