The Operator
class corresponds to the FunctionRef
type in the Expression
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#patterns.
More...
#include <messageformat2_data_model.h>
The Operator
class corresponds to the FunctionRef
type in the Expression
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#patterns.
It represents the annotation that an expression can have: a function name paired with a map from option names to operands (possibly empty).
Operator
is immutable, copyable and movable.
- 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 852 of file messageformat2_data_model.h.
◆ Operator() [1/2]
icu::message2::data_model::Operator::Operator |
( |
const Operator & | other | ) |
|
|
noexcept |
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.
◆ Operator() [2/2]
icu::message2::data_model::Operator::Operator |
( |
| ) |
|
|
inline |
◆ ~Operator()
virtual icu::message2::data_model::Operator::~Operator |
( |
| ) |
|
|
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.
◆ getFunctionName()
const FunctionName & icu::message2::data_model::Operator::getFunctionName |
( |
| ) |
const |
Accesses the function name.
- Returns
- The function name of this operator.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ getOptions()
std::vector< Option > icu::message2::data_model::Operator::getOptions |
( |
| ) |
const |
|
inline |
Accesses function options.
- Returns
- A vector of function options for this operator.
- 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 871 of file messageformat2_data_model.h.
◆ operator=()
Assignment operator.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ Binding
◆ Builder
◆ message2::Checker
friend class message2::Checker |
|
friend |
◆ message2::MessageFormatter
◆ message2::Serializer
friend class message2::Serializer |
|
friend |
◆ swap
Non-member swap function.
- Parameters
-
o1 | will get o2's contents |
o2 | will get o1's contents |
- 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 966 of file messageformat2_data_model.h.
The documentation for this class was generated from the following file: