Represent a emoticon with name and codepoints.
Public Fields | |
| static const emoticon | empty () |
| Represents an empty emoticon. | |
Public Constructors | |
| emoticon (const xtd::string &name, std::initializer_list< char32 > codepoints) | |
| Initialize a new instance of emoticon class with specified name and codepoints. | |
| emoticon (const xtd::string &name, const xtd::array< char32 > &codepoints) | |
| Initialize a new instance of emoticon class with specified name and codepoints. | |
| emoticon (const xtd::string &name, char32 codepoint) | |
| Initialize a new instance of emoticon class with specified name and codepoint. | |
| emoticon (std::initializer_list< char32 > codepoints) | |
| Initialize a new instance of emoticon class with specified codepoints. | |
| emoticon (const xtd::array< char32 > &codepoints) | |
| Initialize a new instance of emoticon class with specified codepoints. | |
| emoticon (char32 codepoint) | |
| Initialize a new instance of emoticon class with specified codepoint. | |
Public Properties | |
| const xtd::string & | name () const noexcept |
| Gets name of emoticon. | |
| xtd::array< char32 > | codepoints () const noexcept |
| Gets codepoints of emoticon. | |
Public Methods | |
| int32 | compare_to (const emoticon &obj) const noexcept override |
| Compares the current instance with another object of the same type. | |
| bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| bool | equals (const emoticon &other) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| xtd::size | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| xtd::string | to_string () const noexcept 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 type_object | get_type () const noexcept |
| Gets the type of the current instance. | |
| template<class object_t> | |
| xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object. | |
| virtual bool | equals (const emoticon &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| virtual int32 | compare_to (const emoticon &obj) const noexcept=0 |
| Compares the current instance with another object of the same type. | |
| template<class object_a_t, class object_b_t> | |
| static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| template<class object_a_t, class object_b_t> | |
| static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
| xtd::forms::emoticon::emoticon | ( | const xtd::string & | name, |
| std::initializer_list< 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< 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, |
| 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.
|
noexcept |
Gets name of emoticon.
|
noexcept |
Gets codepoints of emoticon.
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. |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
true if the specified object is equal to the current object. otherwise, false. Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
true if the specified object is equal to the current object. otherwise, false.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Returns a string containing the codepoints of the emoticons.
Reimplemented from xtd::object.