|
ICU 77.1
77.1
|
The mutable SelectorKeys::Builder class allows the key list to be constructed one key at a time.
More...
#include <messageformat2_data_model.h>
Public Member Functions | |
| Builder & | add (Key &&key, UErrorCode &status) noexcept |
| Adds a single key to the list. More... | |
| SelectorKeys | build (UErrorCode &status) const |
Constructs a new immutable SelectorKeys using the list of keys 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 |
Friends | |
| class | SelectorKeys |
The mutable SelectorKeys::Builder class allows the key list to be constructed one key at a time.
Builder is not copyable or movable.
Definition at line 542 of file messageformat2_data_model.h.
| icu::message2::data_model::SelectorKeys::Builder::Builder | ( | UErrorCode & | status | ) |
Default constructor.
Returns a Builder with an empty list of keys.
| status | Input/output error code |
|
virtual |
Destructor.
|
noexcept |
Adds a single key to the list.
| key | The key to be added. Passed by move |
| status | Input/output error code |
| SelectorKeys icu::message2::data_model::SelectorKeys::Builder::build | ( | UErrorCode & | status | ) | const |
Constructs a new immutable SelectorKeys using the list of keys set with previous add() calls.
The builder object (this) can still be used after calling build().
| status | Input/output error code |