#include <String.h>
Public Member Functions | |
void | Append (const String &rString) |
void | Clear () |
void | Erase (kt_size_t index, kt_size_t length) |
kt_size_t | Find (const String &rValue) const |
kt_size_t | FindFirstOf (const String &rValue) const |
kt_size_t | FindLastOf (const String &rValue) const |
kt_bool | operator!= (const String &rOther) const |
String | operator+ (const String &rOther) |
String | operator+ (const char *pChar) |
kt_bool | operator< (const String &rOther) const |
String & | operator= (const String &rOther) |
kt_bool | operator== (const String &rOther) const |
kt_bool | operator> (const String &rOther) const |
int | operator[] (kt_int32u index) const |
kt_size_t | Size () const |
String () | |
String (char c) | |
String (const char *pString) | |
String (const char *pString, kt_int32u size) | |
String (const String &rOther) | |
String | SubString (kt_size_t index) const |
String | SubString (kt_size_t index, kt_size_t length) const |
const char * | ToCString () const |
virtual | ~String () |
Static Public Member Functions | |
static String | NewLine () |
Private Attributes | |
StringPrivate * | m_pStringPrivate |
Friends | |
String | operator+ (const char *pChar, const String &rOther) |
String | operator+ (const String &rOther1, const String &rOther2) |
KARTO_FORCEINLINE std::ostream & | operator<< (std::ostream &rStream, const String &rString) |
karto::String::String | ( | ) |
Empty string
Definition at line 38 of file String.cpp.
karto::String::String | ( | char | c | ) |
karto::String::String | ( | const char * | pString | ) |
karto::String::String | ( | const char * | pString, |
kt_int32u | size | ||
) |
String from const char* up to the given size
pString | C-string |
size | size |
Definition at line 55 of file String.cpp.
karto::String::String | ( | const String & | rOther | ) |
Copy constructor
Definition at line 61 of file String.cpp.
|
virtual |
Destructor
Definition at line 67 of file String.cpp.
void karto::String::Append | ( | const String & | rString | ) |
Appends a string to this string
rString | string to append to this string |
Definition at line 82 of file String.cpp.
void karto::String::Clear | ( | ) |
Makes the string into the empty string
Definition at line 122 of file String.cpp.
Deletes a portion of the string starting at the given index for the given number of characters
index | starting index to delete characters |
length | number of characters to delete |
Definition at line 112 of file String.cpp.
Finds the first index where the given string is a substring of this string
rValue | value to look for |
Definition at line 97 of file String.cpp.
Finds the first index where the given string is a substring of this string
rValue | value to look for |
Definition at line 102 of file String.cpp.
Finds the last index where the given string is a substring of this string
rValue | value to look for |
Definition at line 107 of file String.cpp.
|
static |
Returns a newline character as a string return newline character as a string
Definition at line 117 of file String.cpp.
Inequality operator
Definition at line 147 of file String.cpp.
Concatenation operator
Definition at line 162 of file String.cpp.
karto::String karto::String::operator+ | ( | const char * | pChar | ) |
Concatenation operator
Definition at line 167 of file String.cpp.
Less than operator
Definition at line 152 of file String.cpp.
Assignment operator
Definition at line 132 of file String.cpp.
Equality operator
Definition at line 142 of file String.cpp.
Greater than operator
Definition at line 157 of file String.cpp.
int karto::String::operator[] | ( | kt_int32u | index | ) | const |
Gets the character at the given index as an integer
index | index |
Definition at line 172 of file String.cpp.
kt_size_t karto::String::Size | ( | ) | const |
Returns the substring from the given index until the end of this string
index | starting index |
Definition at line 87 of file String.cpp.
Returns the substring from the given index for the given number of characters
index | starting index |
length | number of characters for the substring |
Definition at line 92 of file String.cpp.
const char * karto::String::ToCString | ( | ) | const |
Gets the string as a C-string
Definition at line 72 of file String.cpp.
|
friend |
|
private |