5#include "../forms_export.h"
6#include <xtd/iequatable>
58 explicit emoticon(std::initializer_list<char32> codepoints);
62 explicit emoticon(
const std::vector<char32>& codepoints);
70 template<
typename type_t>
74 for (
auto codepoint : codepoints)
75 codepoints_().push_back(static_cast<
char32>(codepoint));
78 template<
typename type_t>
82 for (
auto codepoint : codepoints)
83 codepoints_().push_back(static_cast<
char32>(codepoint));
86 template<
typename type_t>
90 codepoints_({
static_cast<char32>(codepoint)});
93 template<
typename type_t>
94 explicit emoticon(std::initializer_list<type_t> codepoints) {
96 for (
auto codepoint : codepoints)
97 codepoints_().push_back(static_cast<
char32>(codepoint));
100 template<
typename type_t>
101 explicit emoticon(
const std::vector<type_t>& codepoints) {
103 for (
auto codepoint : codepoints)
104 codepoints_().push_back(static_cast<
char32>(codepoint));
107 template<
typename type_t>
108 explicit emoticon(type_t codepoint) {
110 codepoints_({
static_cast<char32>(codepoint)});
114 emoticon(
const emoticon& other);
115 emoticon& operator =(
const emoticon& other);
127 const std::vector<
char32>& codepoints() const noexcept;
133 bool equals(const
emoticon& value) const noexcept override;
142 void name_(const
ustring& name);
143 std::vector<
char32>& codepoints_();
144 void codepoints_(std::vector<
char32>&& codepoints);
146 std::shared_ptr<data> data_;
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
ustring to_string() const noexcept override
Returns a sxd::ustring that represents the current object.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
char32_t char32
Represents a 32-bit unicode character.
Definition types.h:87
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10