#include <String.h>

Public Member Functions | |
| String () | |
| String (char character) | |
| String (const char *buffer) | |
| String (const char *buffer, int size) | |
| String (const std::string &string) | |
| String (const sk::util::String &string) | |
| String (const std::string &string, int size) | |
| virtual | ~String () |
| String & | operator= (const sk::util::String &other) |
| bool | isEmpty () const |
| Returns true if this string is empty. | |
| int | size () const |
| Returns size of the string in bytes. | |
| int | length () const |
| const String | trim () const |
| Retruns a copy of this string with whitespaces removed from the beginning and the end. | |
| const String | squeeze (char character) const |
| const String | strip () const |
| bool | startsWith (const sk::util::String &prefix) const |
| Tests if this string starts with the specified prefix. | |
| bool | startsWith (const char *prefix) const |
| int | indexOf (char character) const |
| Returns the index within this string of the first occurrence of the specified character. | |
| int | lastIndexOf (char character) const |
| Returns the index within this string of the last occurrence of the specified character. | |
| const String | substring (int beginIndex) const |
| Returns a new string that is a substring of this string. | |
| const String | substring (int beginIndex, int endIndex) const |
| Returns a new string that is a substring of this string. | |
| bool | endsWith (const sk::util::String &suffix) const |
| Tests if this string ends with the specified suffix. | |
| bool | endsWith (const char *suffix) const |
| bool | equals (const sk::util::String &other) const |
| Compares this string to the other specified string. | |
| bool | equals (const char *other) const |
| bool | equalsIgnoreCase (const sk::util::String &other) const |
| Compares this String to the other String, ignoring case considerations. | |
| bool | equalsIgnoreCase (const char *other) const |
| const char * | getChars () const |
| Returns a representation of this string as a C string. | |
| String & | self () |
| Returns a reference to itself. | |
| const String & | self () const |
| const sk::util::Class | getClass () const |
| Returns the object's class. | |
| const String | toString () const |
| Returns a string representation of the object. By default, it returns the object's class and the objects's id. | |
| const String | inspect () const |
| Returns a string containing human-readable representation of the object. | |
| String * | clone () const |
| Instantiates another object of the same class as a copy of itself. | |
| virtual uint64_t | getId () const |
| Returns a unique object id. | |
Static Public Attributes | |
| static const String | EMPTY |
| sk::util::String::String | ( | ) |
| sk::util::String::String | ( | char | character | ) |
| sk::util::String::String | ( | const char * | buffer | ) |
| sk::util::String::String | ( | const char * | buffer, | |
| int | size | |||
| ) |
| sk::util::String::String | ( | const std::string & | string | ) |
| sk::util::String::String | ( | const sk::util::String & | string | ) |
| sk::util::String::String | ( | const std::string & | string, | |
| int | size | |||
| ) |
| virtual sk::util::String::~String | ( | ) | [virtual] |
| String* sk::util::String::clone | ( | ) | const |
Instantiates another object of the same class as a copy of itself.
Reimplemented from sk::util::Object.
| bool sk::util::String::endsWith | ( | const char * | suffix | ) | const |
| bool sk::util::String::endsWith | ( | const sk::util::String & | suffix | ) | const |
Tests if this string ends with the specified suffix.
| bool sk::util::String::equals | ( | const char * | other | ) | const |
| bool sk::util::String::equals | ( | const sk::util::String & | other | ) | const |
Compares this string to the other specified string.
Referenced by assertion_traits< sk::util::String >::equal().
| bool sk::util::String::equalsIgnoreCase | ( | const char * | other | ) | const |
| bool sk::util::String::equalsIgnoreCase | ( | const sk::util::String & | other | ) | const |
| const char* sk::util::String::getChars | ( | ) | const |
Returns a representation of this string as a C string.
| const sk::util::Class sk::util::String::getClass | ( | ) | const [virtual] |
| virtual uint64_t sk::util::Object::getId | ( | ) | const [virtual, inherited] |
| int sk::util::String::indexOf | ( | char | character | ) | const |
Returns the index within this string of the first occurrence of the specified character.
| const String sk::util::String::inspect | ( | ) | const [virtual] |
Returns a string containing human-readable representation of the object.
Reimplemented from sk::util::Object.
Referenced by assertion_traits< sk::util::String >::toString().
| bool sk::util::String::isEmpty | ( | ) | const |
Returns true if this string is empty.
| int sk::util::String::lastIndexOf | ( | char | character | ) | const |
Returns the index within this string of the last occurrence of the specified character.
| int sk::util::String::length | ( | ) | const |
| String& sk::util::String::operator= | ( | const sk::util::String & | other | ) |
| const String& sk::util::String::self | ( | ) | const [virtual] |
Reimplemented from sk::util::Object.
| String& sk::util::String::self | ( | ) | [virtual] |
| int sk::util::String::size | ( | ) | const |
Returns size of the string in bytes.
| const String sk::util::String::squeeze | ( | char | character | ) | const |
| bool sk::util::String::startsWith | ( | const char * | prefix | ) | const |
| bool sk::util::String::startsWith | ( | const sk::util::String & | prefix | ) | const |
Tests if this string starts with the specified prefix.
| const String sk::util::String::strip | ( | ) | const |
| const String sk::util::String::substring | ( | int | beginIndex, | |
| int | endIndex | |||
| ) | const |
Returns a new string that is a substring of this string.
| const String sk::util::String::substring | ( | int | beginIndex | ) | const |
Returns a new string that is a substring of this string.
| const String sk::util::String::toString | ( | ) | const [virtual] |
Returns a string representation of the object. By default, it returns the object's class and the objects's id.
Reimplemented from sk::util::Object.
| const String sk::util::String::trim | ( | ) | const |
Retruns a copy of this string with whitespaces removed from the beginning and the end.
const String sk::util::String::EMPTY [static] |
1.5.8