1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-22 05:52:11 +01:00
dxvk/src/util/util_string.h

27 lines
529 B
C
Raw Normal View History

2017-10-10 23:32:13 +02:00
#pragma once
#include <string>
#include <sstream>
#include "./com/com_include.h"
2017-10-10 23:32:13 +02:00
namespace dxvk::str {
inline void format1(std::stringstream&) { }
template<typename T, typename... Tx>
void format1(std::stringstream& str, const T& arg, const Tx&... args) {
str << arg;
format1(str, args...);
}
template<typename... Args>
std::string format(const Args&... args) {
std::stringstream stream;
format1(stream, args...);
return stream.str();
}
std::string fromws(const WCHAR *ws);
2017-10-10 23:32:13 +02:00
}