5#include "../forms_export.hpp"
6#include <xtd/collections/generic/list>
7#include <xtd/icomparable>
8#include <xtd/iequatable>
62 explicit emoticon(std::initializer_list<char32> codepoints);
74 template<
class type_t>
78 for (
auto codepoint : codepoints)
79 codepoints_().push_back(static_cast<
char32>(codepoint));
82 template<
class type_t>
86 for (
auto codepoint : codepoints)
87 codepoints_().push_back(static_cast<
char32>(codepoint));
90 template<
class type_t>
91 emoticon(
const xtd::string& name, type_t codepoint) {
94 codepoints_({
static_cast<char32>(codepoint)});
97 template<
class type_t>
98 explicit emoticon(std::initializer_list<type_t> codepoints) {
100 for (
auto codepoint : codepoints)
101 codepoints_().push_back(static_cast<
char32>(codepoint));
104 template<
class type_t>
107 for (
auto codepoint : codepoints)
108 codepoints_().push_back(static_cast<
char32>(codepoint));
111 template<
class type_t>
112 explicit emoticon(type_t codepoint) {
114 codepoints_({
static_cast<char32>(codepoint)});
118 emoticon(
const emoticon& other);
119 emoticon& operator =(
const emoticon& other);
152 bool equals(const
xtd::
object& obj) const noexcept override;
156 bool equals(const
emoticon& other) const noexcept override;
160 xtd::
size get_hash_code() const noexcept override;
164 xtd::
string to_string() const noexcept override;
169 void name_(const
string& name);
170 xtd::collections::generic::list<
char32>& codepoints_();
180 return value_a.to_string() + value_b.to_string();
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:21
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:26
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10