36 lines
469 B
C++
36 lines
469 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "MuR/MutableString.h"
|
|
|
|
|
|
namespace mu
|
|
{
|
|
|
|
String::String( const FString& InValue)
|
|
{
|
|
Value = InValue;
|
|
}
|
|
|
|
|
|
TSharedPtr<String> String::Clone() const
|
|
{
|
|
TSharedPtr<String> Result = MakeShared<String>(Value);
|
|
return Result;
|
|
}
|
|
|
|
|
|
int32 String::GetDataSize() const
|
|
{
|
|
return sizeof(String) + Value.GetAllocatedSize();
|
|
}
|
|
|
|
|
|
const FString& String::GetValue() const
|
|
{
|
|
return Value;
|
|
}
|
|
|
|
}
|
|
|