mirror of
https://github.com/QuasarApp/pe-parse.git
synced 2025-04-26 12:24:32 +00:00
Massages the pe-parse build into a format that's more accomodating for vcpkg, in preparation for imminent packaging.
22 lines
421 B
C++
22 lines
421 B
C++
#pragma once
|
|
|
|
#include <sstream>
|
|
#include <string>
|
|
|
|
#if defined(_MSC_VER)
|
|
typedef std::basic_string<wchar_t> UCharString;
|
|
#else
|
|
typedef std::u16string UCharString;
|
|
#endif
|
|
|
|
namespace peparse {
|
|
template <class T>
|
|
static std::string to_string(T t, std::ios_base &(*f)(std::ios_base &) ) {
|
|
std::ostringstream oss;
|
|
oss << f << t;
|
|
return oss.str();
|
|
}
|
|
|
|
std::string from_utf16(const UCharString &u);
|
|
} // namespace peparse
|