示例#1
0
std::string format(const char *fmt, ...)
{
    va_list args;
    va_start(args, fmt);
    std::string s = format_arg_list(fmt, args);
    va_end(args);
    return s;
}
示例#2
0
/**
 * @brief printf()-style formatting for STL string.
 * Use this function to format String:s in printf() style.
 */
String string_format(const TCHAR *fmt, ...)
{
	va_list args;
	va_start(args, fmt);
	String s = format_arg_list(fmt, args);
	va_end(args);
	return s;
}