19 string(
const char* buffer);
37 unsigned int length() {
return size; };
40 const char*
c_str()
const {
return buf; };
51 unsigned int size = 0;
Definition application.h:13
Custom string class that functions as dynamic C_str.
Definition string.h:11
string operator+(const string &obj)
Adds a string to itself.
Definition string.cpp:67
string()
Initializes the internal buff to nullptr and size to 0.
Definition string.h:16
const char * c_str() const
Returns the internal buffer;.
Definition string.h:40
~string()
Deletes the allocated char array.
Definition string.cpp:8
string & operator=(const string &obj)
Same as the string(const string& obj) constructor.
Definition string.cpp:28
unsigned int length()
Returns the size of the internal buffer.
Definition string.h:37