MCPcopy Create free account
hub / github.com/VCVRack/Rack / wmain

Function wmain

adapters/standalone.cpp:330–340  ·  view source on GitHub ↗

UTF-16 to UTF-8 wrapper for Windows with unicode */

Source from the content-addressed store, hash-verified

328#ifdef UNICODE
329/** UTF-16 to UTF-8 wrapper for Windows with unicode */
330int wmain(int argc, wchar_t* argvU16[]) {
331 // Initialize char* array with string-owned buffers
332 std::string argvStr[argc];
333 const char* argvU8[argc + 1];
334 for (int i = 0; i < argc; i++) {
335 argvStr[i] = string::UTF16toUTF8(argvU16[i]);
336 argvU8[i] = argvStr[i].c_str();
337 }
338 argvU8[argc] = NULL;
339 return main(argc, (char**) argvU8);
340}
341#endif

Callers

nothing calls this directly

Calls 2

UTF16toUTF8Function · 0.85
mainFunction · 0.85

Tested by

no test coverage detected