aboutsummaryrefslogtreecommitdiff
path: root/backend/String.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 17:32:53 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 17:32:53 +0100
commitb20f46c15dce8b196dbb8890890978947745e094 (patch)
treed9defa84717ffa843fd11b05d0e856473d6d8d59 /backend/String.cpp
parenta7e84b60366c78b131d43157980fbe4c2df655e6 (diff)
change flow architecture
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);