|
ICU 78.3 78.3
|
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 | |
| U_I18N_API Iterator | begin () const |
| Returns the parts of this pattern. | |
| U_I18N_API Iterator | end () const |
| Returns a special value to mark the end of iteration. | |
| U_I18N_API | Pattern () |
| Default constructor. | |
| U_I18N_API | Pattern (const Pattern &other) |
| Copy constructor. | |
| U_I18N_API Pattern & | operator= (Pattern) noexcept |
| Assignment operator. | |
| virtual U_I18N_API | ~Pattern () |
| 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 | PatternPart |
| class | Builder |
| class | message2::MessageFormatter |
| class | message2::Serializer |
| U_I18N_API friend void | swap (Pattern &p1, Pattern &p2) noexcept |
| Non-member swap function. | |
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 1539 of file messageformat2_data_model.h.
|
inline |
Default constructor.
Puts the Pattern into a valid but undefined state.
Definition at line 1663 of file messageformat2_data_model.h.
References U_I18N_API.
Referenced by operator=(), Pattern(), and swap.
| U_I18N_API icu::message2::data_model::Pattern::Pattern | ( | const Pattern & | other | ) |
Copy constructor.
References Pattern(), and U_I18N_API.
|
virtual |
Destructor.
References U_I18N_API.
|
inline |
Returns the parts of this pattern.
Definition at line 1556 of file messageformat2_data_model.h.
References U_I18N_API.
|
inline |
Returns a special value to mark the end of iteration.
Definition at line 1568 of file messageformat2_data_model.h.
References U_I18N_API.
|
noexcept |
Assignment operator.
References Pattern(), and U_I18N_API.
|
friend |
Definition at line 1753 of file messageformat2_data_model.h.
|
friend |
Definition at line 1754 of file messageformat2_data_model.h.
|
friend |
Definition at line 1755 of file messageformat2_data_model.h.
|
friend |
Definition at line 1541 of file messageformat2_data_model.h.
|
friend |
Non-member swap function.
| p1 | will get p2's contents |
| p2 | will get p1's contents |
Definition at line 1672 of file messageformat2_data_model.h.
References Pattern(), swap, and U_I18N_API.
Referenced by swap.