5 #include "../forms_export.h" 6 #include <xtd/iequatable> 57 explicit emoticon(std::initializer_list<char32> codepoints);
61 explicit emoticon(
const std::vector<char32>& codepoints);
69 template<
typename type_t>
73 for (
auto codepoint : codepoints)
74 codepoints_().push_back(static_cast<char32>(codepoint));
77 template<
typename type_t>
81 for (
auto codepoint : codepoints)
82 codepoints_().push_back(static_cast<char32>(codepoint));
85 template<
typename type_t>
89 codepoints_({
static_cast<char32>(codepoint)});
92 template<
typename type_t>
93 explicit emoticon(std::initializer_list<type_t> codepoints) {
95 for (
auto codepoint : codepoints)
96 codepoints_().push_back(static_cast<char32>(codepoint));
99 template<
typename type_t>
100 explicit emoticon(
const std::vector<type_t>& codepoints) {
102 for (
auto codepoint : codepoints)
103 codepoints_().push_back(static_cast<char32>(codepoint));
106 template<
typename type_t>
107 explicit emoticon(type_t codepoint) {
109 codepoints_({
static_cast<char32>(codepoint)});
126 const std::vector<char32>& codepoints()
const noexcept;
132 bool equals(
const emoticon& value)
const noexcept
override;
141 void name_(
const ustring& name);
142 std::vector<char32>& codepoints_();
143 void codepoints_(std::vector<char32>&& codepoints);
145 std::shared_ptr<data> data_;
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
The operating system is other.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
char32_t char32
Represents a 32-bit unicode character.
Definition: types.h:85