The SelectorKeys
class represents the key list for a single variant.
More...
#include <messageformat2_data_model.h>
The SelectorKeys
class represents the key list for a single variant.
It corresponds to the keys
array in the Variant
interface defined in https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model.md#messages
SelectorKeys
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 516 of file messageformat2_data_model.h.
◆ SelectorKeys() [1/2]
icu::message2::data_model::SelectorKeys::SelectorKeys |
( |
| ) |
|
|
inline |
◆ SelectorKeys() [2/2]
icu::message2::data_model::SelectorKeys::SelectorKeys |
( |
const SelectorKeys & | other | ) |
|
Copy constructor.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ ~SelectorKeys()
virtual icu::message2::data_model::SelectorKeys::~SelectorKeys |
( |
| ) |
|
|
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.
◆ getKeys()
std::vector< Key > icu::message2::data_model::SelectorKeys::getKeys |
( |
| ) |
const |
|
inline |
Returns the underlying list of keys.
- Returns
- The list of keys for this variant. Returns an empty list if allocating this
SelectorKeys
object previously failed.
- 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 528 of file messageformat2_data_model.h.
◆ operator<()
bool icu::message2::data_model::SelectorKeys::operator< |
( |
const SelectorKeys & | other | ) |
const |
Less than operator.
Compares the two key lists lexicographically. This method makes it possible for a SelectorKeys
to be used as a map key, which allows variants to be represented as a map. It is not expected to be useful otherwise.
- Parameters
-
- Returns
- true if
this
is less than other
, comparing the two key lists lexicographically. Returns false otherwise.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ operator=()
Assignment operator.
- Internal
- Do not use. This API is for internal use only. ICU 75 technology preview
- Deprecated
- This API is for technology preview only.
◆ Builder
◆ message2::Checker
friend class message2::Checker |
|
friend |
◆ message2::MessageFormatter
◆ message2::Serializer
friend class message2::Serializer |
|
friend |
◆ swap
Non-member swap function.
- Parameters
-
s1 | will get s2's contents |
s2 | will get s1's contents |
- 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 624 of file messageformat2_data_model.h.
The documentation for this class was generated from the following file: