|
ICU 75.1
75.1
|
The Reserved class represents a reserved annotation, as in the reserved nonterminal in the MessageFormat 2 grammar or the Reserved interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions.
More...
#include <messageformat2_data_model.h>
Data Structures | |
| class | Builder |
The mutable Reserved::Builder class allows the reserved sequence to be constructed one part at a time. More... | |
Public Member Functions | |
| int32_t | numParts () const |
A Reserved is a sequence of literals. More... | |
| const Literal & | getPart (int32_t i) const |
| Indexes into the sequence. More... | |
| Reserved (const Reserved &other) | |
| Copy constructor. More... | |
| Reserved & | operator= (Reserved) noexcept |
| Assignment operator. More... | |
| Reserved () | |
| Default constructor. More... | |
| virtual | ~Reserved () |
| Destructor. More... | |
Friends | |
| class | Builder |
| class | Operator |
| void | swap (Reserved &r1, Reserved &r2) noexcept |
| Non-member swap function. More... | |
The Reserved class represents a reserved annotation, as in the reserved nonterminal in the MessageFormat 2 grammar or the Reserved interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#expressions.
Reserved is immutable, copyable and movable.
Definition at line 76 of file messageformat2_data_model.h.
| icu::message2::data_model::Reserved::Reserved | ( | const Reserved & | other | ) |
Copy constructor.
|
inline |
Default constructor.
Puts the Reserved into a valid but undefined state.
Definition at line 195 of file messageformat2_data_model.h.
|
virtual |
Destructor.
| const Literal& icu::message2::data_model::Reserved::getPart | ( | int32_t | i | ) | const |
Indexes into the sequence.
Precondition: i < numParts()
| i | Index of the part being accessed. |
| int32_t icu::message2::data_model::Reserved::numParts | ( | ) | const |
A Reserved is a sequence of literals.
Assignment operator.
Non-member swap function.
| r1 | will get r2's contents |
| r2 | will get r1's contents |
Definition at line 167 of file messageformat2_data_model.h.