UTF-16 to UTF-8 wrapper for Windows with unicode */
| 328 | #ifdef UNICODE |
| 329 | /** UTF-16 to UTF-8 wrapper for Windows with unicode */ |
| 330 | int 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 |
nothing calls this directly
no test coverage detected