![]() |
TinyLib 0.1.1
|
#include <String.h>
Public Member Functions | |
String (const ascii *="") | |
Create a new string from ascii array. | |
String (u32) | |
Create a new string from an unsigned number. | |
String (s32) | |
Create a new string from a signed number. | |
~String () | |
Clean up internal string data. | |
u16 | length () const |
Get length of this string. | |
const ascii * | cStr () const |
Get C-style string. | |
const ascii | operator[] (u16 index) const |
const ascii & | operator[] (u16 index) |
String (const String &other) | |
String copy method. | |
String & | operator= (const String &other) |
String assignment operator. | |
String | operator+ (String other) |
Add two strings together. | |
void | operator+= (String other) |
Quick way to add another string onto this one. | |
String | operator+ (s32 num) |
Add number onto string. | |
void | operator+= (s32 num) |
Quick way to add a number onto this string. | |
String | operator+ (u32 num) |
Add number onto string. | |
void | operator+= (u32 num) |
Quick way to add a number onto this string. | |
tl::String::String | ( | const ascii * | newText = "" | ) |
Create a new string from ascii array.
newText | C-style string. |
Definition at line 8 of file String.cpp.
tl::String::String | ( | u32 | num | ) |
Create a new string from an unsigned number.
num | Unsigned number. |
Definition at line 16 of file String.cpp.
tl::String::String | ( | s32 | num | ) |
Create a new string from a signed number.
num | Signed number. |
Definition at line 24 of file String.cpp.
tl::String::~String | ( | ) |
Clean up internal string data.
Definition at line 31 of file String.cpp.
tl::String::String | ( | const String & | other | ) |
const ascii * tl::String::cStr | ( | ) | const |
Get C-style string.
Definition at line 51 of file String.cpp.
u16 tl::String::length | ( | ) | const |
Get length of this string.
Definition at line 43 of file String.cpp.
Add number onto string.
num | This number will go after the current string. |
Definition at line 131 of file String.cpp.
Add two strings together.
other | This string will go after the current string. |
Definition at line 96 of file String.cpp.
Add number onto string.
num | This number will go after the current string. |
Definition at line 148 of file String.cpp.
void tl::String::operator+= | ( | s32 | num | ) |
Quick way to add a number onto this string.
num | This number will go after the current string. |
Definition at line 139 of file String.cpp.
void tl::String::operator+= | ( | String | other | ) |
Quick way to add another string onto this one.
other | This string will go after the current string. |
Definition at line 121 of file String.cpp.
void tl::String::operator+= | ( | u32 | num | ) |
Quick way to add a number onto this string.
num | This number will go after the current string. |
Definition at line 156 of file String.cpp.
String assignment operator.
other | String to assign. |
Definition at line 74 of file String.cpp.