2022-09-26 15:12:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuR/MutableString.h"
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace mu {
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2023-09-26 04:43:37 -04:00
|
|
|
String::String( const FString& InValue)
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2023-09-26 04:43:37 -04:00
|
|
|
Value = InValue;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-09-26 04:43:37 -04:00
|
|
|
////---------------------------------------------------------------------------------------------
|
|
|
|
|
//void String::Serialise( const String* p, OutputArchive& arch )
|
|
|
|
|
//{
|
|
|
|
|
// arch << *p;
|
|
|
|
|
//}
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
2023-09-26 04:43:37 -04:00
|
|
|
////---------------------------------------------------------------------------------------------
|
|
|
|
|
//Ptr<String> String::StaticUnserialise( InputArchive& arch )
|
|
|
|
|
//{
|
|
|
|
|
// Ptr<String> pResult = new String();
|
|
|
|
|
// arch >> *pResult;
|
|
|
|
|
// return pResult;
|
|
|
|
|
//}
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
Ptr<String> String::Clone() const
|
|
|
|
|
{
|
2023-09-26 04:43:37 -04:00
|
|
|
Ptr<String> pResult = new String(Value);
|
2022-09-26 15:12:13 -04:00
|
|
|
return pResult;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-05-24 02:50:03 -04:00
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
int32 String::GetDataSize() const
|
|
|
|
|
{
|
2023-09-26 04:43:37 -04:00
|
|
|
return sizeof(String) + Value.GetAllocatedSize();
|
2023-05-24 02:50:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-09-26 15:12:13 -04:00
|
|
|
//---------------------------------------------------------------------------------------------
|
2023-09-26 04:43:37 -04:00
|
|
|
const FString& String::GetValue() const
|
2022-09-26 15:12:13 -04:00
|
|
|
{
|
2023-09-26 04:43:37 -04:00
|
|
|
return Value;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|