A Binding
pairs a variable name with an expression.
More...
#include <messageformat2_data_model.h>
A Binding
pairs a variable name with an expression.
It corresponds to the Declaration
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#messages
Binding
is immutable and copyable. It is not 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 2034 of file messageformat2_data_model.h.
◆ Binding() [1/3]
Constructor.
- Parameters
-
v | A variable name. |
e | An expression. |
- 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 2086 of file messageformat2_data_model.h.
◆ Binding() [2/3]
icu::message2::data_model::Binding::Binding |
( |
const Binding & | other | ) |
|
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.
◆ Binding() [3/3]
icu::message2::data_model::Binding::Binding |
( |
| ) |
|
|
inline |
◆ ~Binding()
virtual icu::message2::data_model::Binding::~Binding |
( |
| ) |
|
|
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.
◆ getValue()
const Expression & icu::message2::data_model::Binding::getValue |
( |
| ) |
const |
Accesses the right-hand side of a binding.
- Returns
- A reference to the expression.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ getVariable()
const VariableName & icu::message2::data_model::Binding::getVariable |
( |
| ) |
const |
|
inline |
Accesses the left-hand side of the binding.
- Returns
- A reference to the variable name.
- 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 2053 of file messageformat2_data_model.h.
◆ input()
Constructor for input binding.
- Parameters
-
variableName | The variable name (left-hand side) of the binding. Passed by move. |
rhs | The right-hand side of the input binding. Passed by move. rhs must have an operand that is a variable reference to variableName . If rhs has an operator, it must be a function call. If either of these properties is violated, errorCode is set to U_INVALID_STATE_ERROR. |
errorCode | Input/output error code |
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ isLocal()
UBool icu::message2::data_model::Binding::isLocal |
( |
| ) |
const |
|
inline |
Returns true if and only if this binding represents a local declaration.
Otherwise, it's an input declaration.
- Returns
- True if this binding represents a variable and expression; false if it represents a variable plus an annotation.
Definition at line 2076 of file messageformat2_data_model.h.
◆ operator=()
Copy 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.
◆ message2::Checker
friend class message2::Checker |
|
friend |
◆ message2::MessageFormatter
◆ message2::Parser
friend class message2::Parser |
|
friend |
◆ message2::Serializer
friend class message2::Serializer |
|
friend |
◆ swap
Non-member swap function.
- Parameters
-
b1 | will get b2's contents |
b2 | will get b1'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 2095 of file messageformat2_data_model.h.
The documentation for this class was generated from the following file: