Added assignment to MString from ZString operator=.

This commit is contained in:
Brad Arant committed 2023-10-08 07:26:26 -07:00
1 parent 61d9f8015e
commit 7b333a3984
5 files changed
+19 -5

No files matched your search

+7
View File
@@ -80,6 +80,13 @@ namespace coreutils {
length = value.getLength();
return *this;
}
MString &MString::operator=(coreutils::ZString value) {
setSize(value.getLength());
memcpy(data, value.getData(), value.getLength());
length = value.getLength();
return *this;
}
MString &MString::operator=(const char *value) {
int len = strlen(value);