xtd - Reference Guide
0.1.2
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. | |
emoticon (const std::vector< char32_t > &codepoints) | |
Initialize a new instance of emoticon class with specified codepoints. | |
emoticon (const xtd::ustring &name, char32_t codepoint) | |
Initialize a new instance of emoticon class with specified name and codepoint. | |
emoticon (const xtd::ustring &name, const std::vector< char32_t > &codepoints) | |
Initialize a new instance of emoticon class with specified name and codepoints. | |
emoticon (const xtd::ustring &name, std::initializer_list< char32_t > codepoints) | |
Initialize a new instance of emoticon class with specified name and codepoints. | |
emoticon (std::initializer_list< char32_t > codepoints) | |
Initialize a new instance of emoticon class with specified codepoints. | |
const std::vector< char32_t > & | codepoints () const |
Gets codepoints of emoticon. | |
const xtd::ustring & | name () const |
Gets name of emoticon. | |
xtd::ustring | to_string () const noexcept override |
Returns a string containing the codepoints of the emoticons. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Static Public Member Functions | |
static const emoticon | empty () |
Represents an empty emoticon. | |
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. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
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 |
|
inlineoverridevirtualnoexcept |
Returns a string containing the codepoints of the emoticons.
Reimplemented from xtd::object.