![]() |
MyScript Interactive Ink SDK
3.0.1
|
#include <String.h>
Public Member Functions | |
| String () | |
| String (const String &str) | |
| String (const std::string &str) | |
| String (const char *str) | |
| String (const std::u16string &str) | |
| String (const char16_t *str) | |
| virtual | ~String () |
| String & | operator= (const String &other) |
| bool | isUtf8 () const |
| bool | isUtf16 () const |
| bool | isEmpty () const |
| String | toUtf8 () const |
| String | toUtf16 () 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 | ( | const std::string & | str | ) |
Constructs a string from its UTF-8 representation.
| str | the UTF-8 representation. |
| 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. |
| myscript::iink::String::String | ( | const char16_t * | str | ) |
Constructs a string from its UTF-16 representation.
| str | the UTF-16 representation. |
|
virtual |
Assigns a copy of the other string to this string.
| other | the string to copy. |
| bool myscript::iink::String::isUtf8 | ( | ) | const |
Tells whether the internal representation of this string is UTF-8.
| bool myscript::iink::String::isUtf16 | ( | ) | const |
Tells whether the internal representation of this string is UTF-16.
| bool myscript::iink::String::isEmpty | ( | ) | const |
Tells whether this string is empty.
| String myscript::iink::String::toUtf8 | ( | ) | const |
Converts this string to UTF-8.
| String myscript::iink::String::toUtf16 | ( | ) | const |
Converts this string to UTF-16.
| myscript::iink::String::operator std::string | ( | ) | const |
Returns the UTF-8 representation of this string.
| myscript::iink::String::operator std::u16string | ( | ) | const |
Returns the UTF-16 representation of this string.
| 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 |