Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / String / String.cpp
diff options
context:
space:
mode:
1 files changed, 8 insertions, 0 deletions
-rw-r--r--src/Generic/String/String.cpp8
diff --git a/src/Generic/String/String.cpp b/src/Generic/String/String.cpp
index 99c2e0c..f327795 100644
--- a/src/Generic/String/String.cpp
+++ b/src/Generic/String/String.cpp
@@ -34,6 +34,14 @@ const char* String::get_cstr() const {
return str;
}
+unsigned String::get_count() const {
+ return count;
+}
+
+unsigned String::get_length() const {
+ return length;
+}
+
String& String::operator+=(const String& other) {
char* newStr = new char[length + other.length + 1];
strncpy(newStr, str, length);