ICU 76.1 76.1
|
The Markup
class corresponds to the markup
nonterminal in the MessageFormat 2 grammar and the markup
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json.
More...
#include <messageformat2_data_model.h>
Data Structures | |
class | Builder |
The mutable Markup::Builder class allows the markup to be constructed incrementally. More... | |
Public Member Functions | |
UBool | isOpen () const |
Checks if this markup is an opening tag. | |
UBool | isClose () const |
Checks if this markup is an closing tag. | |
UBool | isStandalone () const |
Checks if this markup is an standalone tag. | |
const UnicodeString & | getName () const |
Gets the name of this markup. | |
std::vector< Option > | getOptions () const |
Gets the options of this markup. | |
std::vector< Option > | getAttributes () const |
Gets the attributes of this markup. | |
Markup () | |
Default constructor. | |
virtual | ~Markup () |
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 | Builder |
class | message2::Serializer |
The Markup
class corresponds to the markup
nonterminal in the MessageFormat 2 grammar and the markup
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json.
Markup
is immutable, copyable and movable.
Definition at line 1048 of file messageformat2_data_model.h.
|
inline |
Default constructor.
Puts the Markup into a valid but undefined state.
Definition at line 1111 of file messageformat2_data_model.h.
|
virtual |
Destructor.
|
inline |
Gets the attributes of this markup.
Definition at line 1103 of file messageformat2_data_model.h.
|
inline |
Gets the name of this markup.
Definition at line 1085 of file messageformat2_data_model.h.
|
inline |
Gets the options of this markup.
Definition at line 1094 of file messageformat2_data_model.h.
|
inline |
Checks if this markup is an closing tag.
Definition at line 1067 of file messageformat2_data_model.h.
|
inline |
Checks if this markup is an opening tag.
Definition at line 1058 of file messageformat2_data_model.h.
|
inline |
Checks if this markup is an standalone tag.
Definition at line 1076 of file messageformat2_data_model.h.
Definition at line 1240 of file messageformat2_data_model.h.
Definition at line 1241 of file messageformat2_data_model.h.