24 wideArgv = ::CommandLineToArgvW(::GetCommandLineW(), &
argc);
25 for (
size_t ii = 0; ii <
argc; ++ii)
27 auto begin = wideArgv[ii];
30 narrowArgv.emplace_back(
31 std::wstring_convert<std::codecvt_utf8<wchar_t>>().to_bytes(
35 for (
const auto& arg : narrowArgv)
36 argv.push_back(arg.c_str());
38 argv.push_back(
nullptr);
41MSWParser::~MSWParser()
44 ::LocalFree(wideArgv);
UTILITY_API const char *const * argv
A copy of argv; responsibility of application startup to assign it.
UTILITY_API int argc
A copy of argc; responsibility of application startup to assign it.
const char * end(const char *str) noexcept
const char * begin(const char *str) noexcept