ICU 76.1 76.1
|
Interface that formatter classes must implement. More...
#include <messageformat2_function_registry.h>
Public Member Functions | |
virtual FormattedPlaceholder | format (FormattedPlaceholder &&toFormat, FunctionOptions &&options, UErrorCode &status) const =0 |
Formats the input passed in context by setting an output using one of the FormattingContext methods or indicating an error. | |
virtual | ~Formatter () |
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. | |
Interface that formatter classes must implement.
Definition at line 335 of file messageformat2_function_registry.h.
|
virtual |
Destructor.
|
pure virtual |
Formats the input passed in context
by setting an output using one of the FormattingContext
methods or indicating an error.
toFormat | Placeholder, including a source formattable value and possibly the output of a previous formatter applied to it; see message2::FormattedPlaceholder for details. Passed by move. |
options | The named function options. Passed by move |
status | Input/output error code. Should not be set directly by the custom formatter, which should use FormattingContext::setFormattingWarning() to signal errors. The custom formatter may pass status to other ICU functions that can signal errors using this mechanism. |