blob: f94dce28e0ca9008a391459d3af0c546a9f319b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "String.h"
#include <cstring>
/* Private */
void String::free() {
delete[] str;
}
void String::copyFrom(const String& other) {
this->str = new char[other.length];
strcpy(this->str, other.str);
}
|