|
ICU 75.1
75.1
|
The UnsupportedStatement class corresponds to the reserved-statement nonterminal in the MessageFormat 2 grammar and the unsupported-statement type defined in: https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json#L169.
More...
#include <messageformat2_data_model.h>
Data Structures | |
| class | Builder |
The mutable UnsupportedStatement::Builder class allows the statement to be constructed incrementally. More... | |
Public Member Functions | |
| const UnicodeString & | getKeyword () const |
| Accesses the keyword of this statement. More... | |
| const Reserved * | getBody (UErrorCode &status) const |
Accesses the reserved-body of this statement. More... | |
| std::vector< Expression > | getExpressions () const |
| Accesses the expressions of this statement. More... | |
| UnsupportedStatement (const UnsupportedStatement &other) | |
| Copy constructor. More... | |
| UnsupportedStatement & | operator= (UnsupportedStatement) noexcept |
| Assignment operator. More... | |
| UnsupportedStatement () | |
| Default constructor. More... | |
| virtual | ~UnsupportedStatement () |
| Destructor. More... | |
Public Member Functions inherited from icu::UObject | |
| virtual | ~UObject () |
| Destructor. More... | |
| virtual UClassID | getDynamicClassID () const |
| ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Friends | |
| class | message2::Serializer |
| void | swap (UnsupportedStatement &s1, UnsupportedStatement &s2) noexcept |
| Non-member swap function. More... | |
The UnsupportedStatement class corresponds to the reserved-statement nonterminal in the MessageFormat 2 grammar and the unsupported-statement type defined in: https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json#L169.
It represents a keyword (string) together with an optional Reserved annotation and a non-empty list of expressions.
UnsupportedStatement is immutable, copyable and movable.
Definition at line 1767 of file messageformat2_data_model.h.
| icu::message2::data_model::UnsupportedStatement::UnsupportedStatement | ( | const UnsupportedStatement & | other | ) |
Copy constructor.
|
inline |
Default constructor.
Puts the UnsupportedStatement into a valid but undefined state.
Definition at line 1931 of file messageformat2_data_model.h.
|
virtual |
Destructor.
| const Reserved* icu::message2::data_model::UnsupportedStatement::getBody | ( | UErrorCode & | status | ) | const |
Accesses the reserved-body of this statement.
| status | Input/output error code. Set to U_ILLEGAL_ARGUMENT_ERROR if this unsupported statement has no body. |
Reserved annotation, which is non-null if U_SUCCESS(status).
|
inline |
Accesses the expressions of this statement.
Definition at line 1798 of file messageformat2_data_model.h.
|
inline |
Accesses the keyword of this statement.
Definition at line 1777 of file messageformat2_data_model.h.
|
noexcept |
Assignment operator.
|
friend |
Non-member swap function.
| s1 | will get s2's contents |
| s2 | will get s1's contents |
Definition at line 1902 of file messageformat2_data_model.h.