6#include <xtd/collections/generic/list>
7#include <xtd/icomparable>
8#include <xtd/iequatable>
74 template<
class type_t>
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>
105 explicit emoticon(
const xtd::array<type_t>& codepoints) {
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;
169 void name_(const
string&
name);
180 return value_a.to_string() + value_b.to_string();
195inline xtd::string operator +(
const char* value_a,
const xtd::forms::emoticon& value_b) {
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
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
object()=default
Create a new instance of the ultimate base class object.
#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
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201