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>
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.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 945 of file messageformat2_data_model.h.
◆ Markup()
| icu::message2::data_model::Markup::Markup |
( |
| ) |
|
|
inline |
◆ ~Markup()
| virtual icu::message2::data_model::Markup::~Markup |
( |
| ) |
|
|
virtual |
Destructor.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ getAttributes()
| std::vector< Option > icu::message2::data_model::Markup::getAttributes |
( |
| ) |
const |
|
inline |
Gets the attributes of this markup.
- Returns
- A vector of attributes
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 1000 of file messageformat2_data_model.h.
◆ getName()
| const UnicodeString & icu::message2::data_model::Markup::getName |
( |
| ) |
const |
|
inline |
Gets the name of this markup.
- Returns
- A reference to the string identifying the markup
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 982 of file messageformat2_data_model.h.
◆ getOptions()
| std::vector< Option > icu::message2::data_model::Markup::getOptions |
( |
| ) |
const |
|
inline |
Gets the options of this markup.
- Returns
- A reference to the string identifying the markup
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 991 of file messageformat2_data_model.h.
◆ isClose()
| UBool icu::message2::data_model::Markup::isClose |
( |
| ) |
const |
|
inline |
Checks if this markup is an closing tag.
- Returns
- True if and only if this represents an closing tag.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 964 of file messageformat2_data_model.h.
◆ isOpen()
| UBool icu::message2::data_model::Markup::isOpen |
( |
| ) |
const |
|
inline |
Checks if this markup is an opening tag.
- Returns
- True if and only if this represents an opening tag.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 955 of file messageformat2_data_model.h.
◆ isStandalone()
| UBool icu::message2::data_model::Markup::isStandalone |
( |
| ) |
const |
|
inline |
Checks if this markup is an standalone tag.
- Returns
- True if and only if this represents a standalone tag.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
Definition at line 973 of file messageformat2_data_model.h.
◆ Builder
◆ message2::MessageFormatter
◆ message2::Serializer
| friend class message2::Serializer |
|
friend |
The documentation for this class was generated from the following file: