mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-11 11:05:45 -04:00
Common: Add String::ToStdString()
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user