Represent a emoticon with name and codepoints.
Public Fields | |
| static auto | empty () -> emoticon |
| Represents an empty emoticon. | |
Public Constructors | |
| emoticon (const xtd::string &name, std::initializer_list< xtd::char32 > codepoints) | |
| Initialize a new instance of emoticon class with specified name and codepoints. | |
| emoticon (const xtd::string &name, const xtd::array< xtd::char32 > &codepoints) | |
| Initialize a new instance of emoticon class with specified name and codepoints. | |
| emoticon (const xtd::string &name, xtd::char32 codepoint) | |
| Initialize a new instance of emoticon class with specified name and codepoint. | |
| emoticon (std::initializer_list< xtd::char32 > codepoints) | |
| Initialize a new instance of emoticon class with specified codepoints. | |
| emoticon (const xtd::array< xtd::char32 > &codepoints) | |
| Initialize a new instance of emoticon class with specified codepoints. | |
| emoticon (xtd::char32 codepoint) | |
| Initialize a new instance of emoticon class with specified codepoint. | |
Public Properties | |
| auto | name () const noexcept -> const xtd::string & |
| Gets name of emoticon. | |
| auto | codepoints () const noexcept -> xtd::array< xtd::char32 > |
| Gets codepoints of emoticon. | |
Public Methods | |
| auto | compare_to (const emoticon &obj) const noexcept -> xtd::int32 override |
| Compares the current instance with another object of the same type. | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const emoticon &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | to_string () const noexcept -> xtd::string override |
| Returns a string containing the codepoints of the emoticons. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | equals (const emoticon &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| virtual auto | compare_to (const emoticon &obj) const noexcept -> xtd::int32=0 |
| Compares the current instance with another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| xtd::forms::emoticon::emoticon | ( | const xtd::string & | name, |
| std::initializer_list< xtd::char32 > | codepoints ) |
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 that represent the emoticon. |
| xtd::forms::emoticon::emoticon | ( | const xtd::string & | name, |
| const xtd::array< xtd::char32 > & | codepoints ) |
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 that represent the emoticon. |
| xtd::forms::emoticon::emoticon | ( | const xtd::string & | name, |
| xtd::char32 | codepoint ) |
Initialize a new instance of emoticon class with specified name and codepoint.
| name | A string that represent the name of emoticon |
| codepoint | A char32 that represent the emoticon. |
|
explicit |
Initialize a new instance of emoticon class with specified codepoints.
| codepoints | An initializer list of char32 that represent the emoticon. |
|
explicit |
Initialize a new instance of emoticon class with specified codepoints.
| codepoints | An array of char32 that represent the emoticon. |
|
explicit |
Initialize a new instance of emoticon class with specified codepoint.
| codepoints | A char32 that represent the emoticon. |
|
static |
Represents an empty emoticon.
|
nodiscardnoexcept |
Gets name of emoticon.
|
nodiscardnoexcept |
Gets codepoints of emoticon.
|
nodiscardoverridenoexcept |
Compares the current instance with another object of the same type.
| obj | An object to compare with this instance. |
| Value | Condition |
|---|---|
| Less than zero | This instance is less than obj. |
| Zero | This instance is equal to obj. |
| Greater than zero | This instance is greater than obj. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardoverridevirtualnoexcept |
Returns a string containing the codepoints of the emoticons.
Reimplemented from xtd::object.