ICU4C 79
Loading...
Searching...
No Matches
Public Member Functions
icu::message2::Function Class Referenceabstract

Interface that function handler classes must implement. More...

#include <messageformat2_function_registry.h>

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

Public Member Functions

virtual LocalPointer< FunctionValue > call (const FunctionContext &context, const FunctionValue &operand, const FunctionOptions &options, UErrorCode &status) const =0
 Calls this Function on a FunctionValue operand and its FunctionOptions options, returning a LocalPointer to a FunctionValue.
 
virtual ~Function ()
 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.
 

Detailed Description

Interface that function handler classes must implement.

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

Definition at line 323 of file messageformat2_function_registry.h.

Constructor & Destructor Documentation

◆ ~Function()

virtual icu::message2::Function::~Function ( )
virtual

Destructor.

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

Member Function Documentation

◆ call()

virtual LocalPointer< FunctionValue > icu::message2::Function::call ( const FunctionContext &  context,
const FunctionValue &  operand,
const FunctionOptions &  options,
UErrorCode &  status 
) const
pure virtual

Calls this Function on a FunctionValue operand and its FunctionOptions options, returning a LocalPointer to a FunctionValue.

Parameters
contextThe context of this function, based on its contextual options
operandThe unnamed argument to the function.
optionsResolved options for this function.
statusInput/output error code
Returns
The function value that is the result of calling this function on the arguments.
Internal:
Do not use. This API is for internal use only. ICU 79 technology preview
Deprecated:
This API is for technology preview only.

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