Common: Add String::ToStdString()
This commit is contained in:
parent
631d1e7433
commit
9855a222e0
|
@ -249,6 +249,10 @@ public:
|
|||
{
|
||||
return IsEmpty() ? std::string_view() : std::string_view(GetCharArray(), GetLength());
|
||||
}
|
||||
std::string ToStdString() const
|
||||
{
|
||||
return std::string(GetStringView());
|
||||
}
|
||||
|
||||
// creates a new string from the specified format
|
||||
static String FromFormat(const char* FormatString, ...) printflike(1, 2);
|
||||
|
|
Loading…
Reference in New Issue