xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <emoticon.h>
Represent a emoticon with name and codepoints.
Inherits xtd::object.
Public Member Functions | |
emoticon (char32_t codepoint) | |
Initialize a new instance of emoticon class with specified codepoint. More... | |
emoticon (const std::vector< char32_t > &codepoints) | |
Initialize a new instance of emoticon class with specified codepoints. More... | |
emoticon (const xtd::ustring &name, char32_t codepoint) | |
Initialize a new instance of emoticon class with specified name and codepoint. More... | |
emoticon (const xtd::ustring &name, const std::vector< char32_t > &codepoints) | |
Initialize a new instance of emoticon class with specified name and codepoints. More... | |
emoticon (const xtd::ustring &name, std::initializer_list< char32_t > codepoints) | |
Initialize a new instance of emoticon class with specified name and codepoints. More... | |
emoticon (std::initializer_list< char32_t > codepoints) | |
Initialize a new instance of emoticon class with specified codepoints. More... | |
const std::vector< char32_t > & | codepoints () const |
Gets codepoints of emoticon. More... | |
const xtd::ustring & | name () const |
Gets name of emoticon. More... | |
xtd::ustring | to_string () const noexcept override |
Returns a string containing the codepoints of the emoticons. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
Static Public Member Functions | |
static const emoticon | empty () |
Represents an empty emoticon. More... | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
|
inline |
Initialize a new instance of emoticon class with specified name and codepoints.
name | A string that represent the name of emoticon |
codepoints | An initializer list of char32_t that represent the emoticon. |
|
inline |
Initialize a new instance of emoticon class with specified name and codepoints.
name | A string that represent the name of emoticon |
codepoints | An array of char32_t that represent the emoticon. |
|
inline |
Initialize a new instance of emoticon class with specified name and codepoint.
name | A string that represent the name of emoticon |
codepoint | A char32_t that represent the emoticon. |
|
inline |
Initialize a new instance of emoticon class with specified codepoints.
codepoints | An initializer list of char32_t that represent the emoticon. |
|
inline |
Initialize a new instance of emoticon class with specified codepoints.
codepoints | An array of char32_t that represent the emoticon. |
|
inline |
Initialize a new instance of emoticon class with specified codepoint.
codepoints | A char32_t that represent the emoticon. |
|
inline |
Gets codepoints of emoticon.
|
static |
Represents an empty emoticon.
|
inline |
Gets name of emoticon.
|
inlineoverridevirtualnoexcept |
Returns a string containing the codepoints of the emoticons.
Reimplemented from xtd::object.