Core/String: Add Format static method

This commit is contained in:
Lynix
2016-12-16 18:37:06 +01:00
parent 997a874c0e
commit 7de3c4905f
3 changed files with 38 additions and 1 deletions

View File

@@ -19,6 +19,23 @@ namespace Nz
{
}
/*!
* \brief Build a string using a format and returns it
* \return Formatted string
*
* \param format String format
* \param ... Format arguments
*/
String String::Format(const char* format, ...)
{
va_list args;
va_start(args, format);
String result = FormatVA(format, args);
va_end(args);
return result;
}
/*!
* \brief Releases the content to the string
*/