ICU 77.1
77.1
|
A Pattern
is a sequence of formattable parts.
More...
#include <messageformat2_data_model.h>
Data Structures | |
class | Builder |
The mutable Pattern::Builder class allows the pattern to be constructed one part at a time. More... | |
struct | Iterator |
The Pattern::Iterator class provides an iterator over the formattable parts of a pattern. More... | |
Public Member Functions | |
Iterator | begin () const |
Returns the parts of this pattern. More... | |
Iterator | end () const |
Returns a special value to mark the end of iteration. More... | |
Pattern () | |
Default constructor. More... | |
Pattern (const Pattern &other) | |
Copy constructor. More... | |
Pattern & | operator= (Pattern) noexcept |
Assignment operator. More... | |
virtual | ~Pattern () |
Destructor. More... | |
![]() | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Friends | |
class | PatternPart |
class | Builder |
class | message2::MessageFormatter |
class | message2::Serializer |
void | swap (Pattern &p1, Pattern &p2) noexcept |
Non-member swap function. More... | |
A Pattern
is a sequence of formattable parts.
It corresponds to the Pattern
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#patterns
Pattern
is immutable, copyable and movable.
Definition at line 1678 of file messageformat2_data_model.h.
|
inline |
Default constructor.
Puts the Pattern into a valid but undefined state.
Definition at line 1800 of file messageformat2_data_model.h.
icu::message2::data_model::Pattern::Pattern | ( | const Pattern & | other | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Returns the parts of this pattern.
Definition at line 1693 of file messageformat2_data_model.h.
|
inline |
Returns a special value to mark the end of iteration.
Definition at line 1705 of file messageformat2_data_model.h.
Assignment operator.
Non-member swap function.
p1 | will get p2's contents |
p2 | will get p1's contents |
Definition at line 1809 of file messageformat2_data_model.h.