![]() |
MyScript Interactive Ink SDK 4.2.0
|
#include <String.h>
Public Member Functions | |
| String () | |
| String (const String &str) | |
| String (String &&str) | |
| String (const std::string &str) | |
| String (std::string &&str) | |
| String (const char *str) | |
| String (const std::u16string &str) | |
| String (std::u16string &&str) | |
| String (const char16_t *str) | |
| virtual | ~String () |
| String & | operator= (const String &other) |
| String & | operator= (String &&other) |
| bool | isUtf8 () const |
| bool | isUtf16 () const |
| bool | isEmpty () const |
| size_t | size () const |
| const char * | c_str () const |
| String | toUtf8 () const |
| String | toUtf16 () const |
| const std::string & | asUtf8 () const |
| operator std::string () const | |
| operator std::u16string () const | |
| int | compare (const char *other) const |
| int | compare (const std::string &other) const |
| int | compare (const char16_t *other) const |
| int | compare (const std::u16string &other) const |
| int | compare (const String &other) const |
| bool | operator== (const String &other) const |
| bool | operator!= (const String &other) const |
| bool | operator< (const String &other) const |
| bool | operator<= (const String &other) const |
| bool | operator> (const String &other) const |
| bool | operator>= (const String &other) const |
Represents a sequence of characters with automatic conversion between UTF-8 and UTF-16.
| myscript::iink::String::String | ( | ) |
Constructs an empty string.
| myscript::iink::String::String | ( | const String & | str | ) |
Constructs a copy of the specified string.
| str | the string to copy. |
| myscript::iink::String::String | ( | String && | str | ) |
Constructs a copy by moving the specified string.
| str | the string to move. |
| myscript::iink::String::String | ( | const std::string & | str | ) |
Constructs a string from its UTF-8 representation.
| str | the UTF-8 representation to copy. |
| myscript::iink::String::String | ( | std::string && | str | ) |
Constructs a string from its UTF-8 representation.
| str | the UTF-8 representation to move. |
| myscript::iink::String::String | ( | const char * | str | ) |
Constructs a string from its UTF-8 representation.
| str | the UTF-8 representation. |
| myscript::iink::String::String | ( | const std::u16string & | str | ) |
Constructs a string from its UTF-16 representation.
| str | the UTF-16 representation to copy. |
| myscript::iink::String::String | ( | std::u16string && | str | ) |
Constructs a string from its UTF-16 representation.
| str | the UTF-16 representation to move. |
| myscript::iink::String::String | ( | const char16_t * | str | ) |
Constructs a string from its UTF-16 representation.
| str | the UTF-16 representation. |
|
virtual |
Copy assigns the other string to this string.
| other | the string to copy. |
Move assigns the other string to this string.
| other | the string to move. |
| bool myscript::iink::String::isUtf8 | ( | ) | const |
Tells whether the internal representation of this string is UTF-8. Deprecated since 3.2. Always returns true.
| bool myscript::iink::String::isUtf16 | ( | ) | const |
Tells whether the internal representation of this string is UTF-16. Deprecated since 3.2. Always returns false.
| bool myscript::iink::String::isEmpty | ( | ) | const |
Tells whether this string is empty.
| size_t myscript::iink::String::size | ( | ) | const |
Returns the number of bytes in this string.
| const char * myscript::iink::String::c_str | ( | ) | const |
Returns a pointer to a null-terminated UTF-8 character array with data equivalent to those stored in this string. The pointer obtained will be invalidated by any modification to this string.
| String myscript::iink::String::toUtf8 | ( | ) | const |
Returns a UTF-8 copy of this string. Deprecated since 3.2. Same as copy constructor.
| String myscript::iink::String::toUtf16 | ( | ) | const |
Returns a copy of this string. Deprecated since 3.2. Same as copy constructor.
| const std::string & myscript::iink::String::asUtf8 | ( | ) | const |
Returns this string as a const std::string reference.
| myscript::iink::String::operator std::string | ( | ) | const |
Converts this string as a std::string.
|
explicit |
Converts this string as a std::u16string.
| int myscript::iink::String::compare | ( | const char * | other | ) | const |
| int myscript::iink::String::compare | ( | const std::string & | other | ) | const |
| int myscript::iink::String::compare | ( | const char16_t * | other | ) | const |
| int myscript::iink::String::compare | ( | const std::u16string & | other | ) | const |
| int myscript::iink::String::compare | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator== | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator!= | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator< | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator<= | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator> | ( | const String & | other | ) | const |
| bool myscript::iink::String::operator>= | ( | const String & | other | ) | const |