|
ICU 75.1
75.1
|
The mutable Reserved::Builder class allows the reserved sequence to be constructed one part at a time.
More...
#include <messageformat2_data_model.h>
Public Member Functions | |
| Builder & | add (Literal &&part, UErrorCode &status) noexcept |
| Adds a single literal to the reserved sequence. More... | |
| Reserved | build (UErrorCode &status) const noexcept |
Constructs a new immutable Reserved using the list of parts set with previous add() calls. More... | |
| Builder (UErrorCode &status) | |
| Default constructor. More... | |
| virtual | ~Builder () |
| Destructor. More... | |
| Builder (const Builder &)=delete | |
| Builder & | operator= (const Builder &)=delete |
| Builder (Builder &&)=delete | |
| Builder & | operator= (Builder &&)=delete |
The mutable Reserved::Builder class allows the reserved sequence to be constructed one part at a time.
Builder is not copyable or movable.
Definition at line 108 of file messageformat2_data_model.h.
| icu::message2::data_model::Reserved::Builder::Builder | ( | UErrorCode & | status | ) |
Default constructor.
Returns a builder with an empty Reserved sequence.
param status Input/output error code
|
virtual |
Destructor.
|
noexcept |
Adds a single literal to the reserved sequence.
| part | The literal to be added. Passed by move. |
| status | Input/output error code |
|
noexcept |
Constructs a new immutable Reserved using the list of parts set with previous add() calls.
The builder object (this) can still be used after calling build().
param status Input/output error code