Catos Engine (Source) 0.0.1
Lightweight Game engine
|
Custom string class that functions as dynamic C_str. More...
#include <string.h>
Public Member Functions | |
string () | |
Initializes the internal buff to nullptr and size to 0. | |
string (const char *buffer) | |
Copies the char array to the internal buffer. | |
string (const string &obj) | |
Copies string object to its internal values. | |
string (string &&obj) | |
Transfers ownerShip of buffers to this. | |
string & | operator= (const string &obj) |
Same as the string(const string& obj) constructor. | |
string & | operator= (string &&obj) |
Transfers ownership from a buffer to this. | |
string | operator+ (const string &obj) |
Adds a string to itself. | |
unsigned int | length () |
Returns the size of the internal buffer. | |
const char * | c_str () const |
Returns the internal buffer;. | |
~string () | |
Deletes the allocated char array. | |
Custom string class that functions as dynamic C_str.
|
inline |
Initializes the internal buff to nullptr and size to 0.
catos::string::string | ( | const char * | buffer | ) |
Copies the char array to the internal buffer.
catos::string::string | ( | const string & | obj | ) |
Copies string object to its internal values.
catos::string::string | ( | catos::string && | obj | ) |
Transfers ownerShip of buffers to this.
catos::string::~string | ( | ) |
Deletes the allocated char array.
|
inline |
Returns the internal buffer;.
|
inline |
Returns the size of the internal buffer.
catos::string catos::string::operator+ | ( | const string & | obj | ) |
Adds a string to itself.
catos::string & catos::string::operator= | ( | const string & | obj | ) |
Same as the string(const string& obj) constructor.
catos::string & catos::string::operator= | ( | catos::string && | obj | ) |
Transfers ownership from a buffer to this.