aboutsummaryrefslogtreecommitdiff
path: root/backend/String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/String.cpp')
-rw-r--r--backend/String.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/String.cpp b/backend/String.cpp
index 2f998be..381277e 100644
--- a/backend/String.cpp
+++ b/backend/String.cpp
@@ -15,6 +15,7 @@ String & String::operator = (const String & other) {
this->set(other.data(), other.size());
return *this;
}
+
String::String(const String & other) {
this->set(other.data(), other.size());
}
@@ -24,6 +25,10 @@ String::String(const char * c_str) {
this->set(c_str);
}
+String::String(const char * data, size_t size) {
+ this->set(data, size);
+}
+
String String::fmt(const char * fmt, ...) {
va_list args;
va_start(args, fmt);