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. | |
const Reserved * | getBody (UErrorCode &status) const |
Accesses the reserved-body of this statement. | |
std::vector< Expression > | getExpressions () const |
Accesses the expressions of this statement. | |
UnsupportedStatement (const UnsupportedStatement &other) | |
Copy constructor. | |
UnsupportedStatement & | operator= (UnsupportedStatement) noexcept |
Assignment operator. | |
UnsupportedStatement () | |
Default constructor. | |
virtual | ~UnsupportedStatement () |
Destructor. | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. | |
Friends | |
class | message2::Serializer |
void | swap (UnsupportedStatement &s1, UnsupportedStatement &s2) noexcept |
Non-member swap function. | |
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 1776 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 1936 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 1807 of file messageformat2_data_model.h.
|
inline |
Accesses the keyword of this statement.
Definition at line 1786 of file messageformat2_data_model.h.
|
noexcept |
Assignment operator.
Definition at line 1945 of file messageformat2_data_model.h.
|
friend |
Non-member swap function.
s1 | will get s2's contents |
s2 | will get s1's contents |
Definition at line 1907 of file messageformat2_data_model.h.