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. | |
const Literal & | getPart (int32_t i) const |
Indexes into the sequence. | |
Reserved (const Reserved &other) | |
Copy constructor. | |
Reserved & | operator= (Reserved) noexcept |
Assignment operator. | |
Reserved () | |
Default constructor. | |
virtual | ~Reserved () |
Destructor. | |
Friends | |
class | Builder |
class | Operator |
void | swap (Reserved &r1, Reserved &r2) noexcept |
Non-member swap function. | |
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 94 of file messageformat2_data_model.h.
Copy constructor.
|
inline |
Default constructor.
Puts the Reserved into a valid but undefined state.
Definition at line 208 of file messageformat2_data_model.h.
|
virtual |
Destructor.
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.
Definition at line 217 of file messageformat2_data_model.h.
Definition at line 218 of file messageformat2_data_model.h.
Non-member swap function.
r1 | will get r2's contents |
r2 | will get r1's contents |
Definition at line 181 of file messageformat2_data_model.h.