|
ICU4C 79
|
Defines mappings from names of formatters and selectors to functions implementing them. More...
#include <messageformat2_function_registry.h>
Data Structures | |
| class | Builder |
| The mutable Builder class allows each formatter and selector factory to be initialized separately; calling its build() method yields an immutable MFFunctionRegistry object. More... | |
Public Member Functions | |
| const Function * | getFunction (const FunctionName &functionName) const |
| Looks up a function by the name of the function. | |
| UBool | getDefaultFormatterNameByType (const UnicodeString &formatterType, FunctionName &name) const |
| Looks up a function by a type tag. | |
| MFFunctionRegistry & | operator= (MFFunctionRegistry &&) noexcept |
| Move assignment operator: The source MFFunctionRegistry will be left in a valid but undefined state. | |
| MFFunctionRegistry (MFFunctionRegistry &&other) | |
| Move constructor: The source MFFunctionRegistry will be left in a valid but undefined state. | |
| virtual | ~MFFunctionRegistry () |
| Destructor. | |
| 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. | |
Static Public Member Functions | |
| static const MFFunctionRegistry * | getStandardFunctionsRegistry (UErrorCode &status) |
| Get the standard function registry. | |
Friends | |
| class | MessageContext |
| class | MessageFormatter |
| class | MF2RegistrySingleton |
Defines mappings from names of formatters and selectors to functions implementing them.
The required set of formatter and selector functions is defined in the spec. Users can also define custom formatter and selector functions.
MFFunctionRegistry is immutable and movable. It is not copyable.
Definition at line 46 of file messageformat2_function_registry.h.
|
inline |
Move constructor: The source MFFunctionRegistry will be left in a valid but undefined state.
Definition at line 198 of file messageformat2_function_registry.h.
References MFFunctionRegistry().
Referenced by icu::message2::MFFunctionRegistry::Builder::build(), getStandardFunctionsRegistry(), MFFunctionRegistry(), and operator=().
|
virtual |
Destructor.
| UBool icu::message2::MFFunctionRegistry::getDefaultFormatterNameByType | ( | const UnicodeString & | formatterType, |
| FunctionName & | name ) const |
Looks up a function by a type tag.
This method gets the name of the default formatter registered for that type. If no formatter was explicitly registered for this type, it returns false.
| formatterType | Type tag for the desired FormattableObject type to be formatted. |
| name | Output parameter; initialized to the name of the default formatter for formatterType if one has been registered. Its value is undefined otherwise. |
| const Function * icu::message2::MFFunctionRegistry::getFunction | ( | const FunctionName & | functionName | ) | const |
Looks up a function by the name of the function.
Returns the result by pointer rather than by reference since it can fail.
| functionName | Name of the desired function. |
|
static |
Get the standard function registry.
| status | Input/output error code |
References MFFunctionRegistry(), and operator=().
|
noexcept |
Move assignment operator: The source MFFunctionRegistry will be left in a valid but undefined state.
References MFFunctionRegistry().
Referenced by getStandardFunctionsRegistry().
|
friend |
Definition at line 217 of file messageformat2_function_registry.h.
|
friend |
Definition at line 218 of file messageformat2_function_registry.h.
|
friend |
Definition at line 219 of file messageformat2_function_registry.h.