subprocess 0.5.0
Modern subprocess library for c++
Loading...
Searching...
No Matches
utf8_to_utf16.hpp
Go to the documentation of this file.
1
2#include <string>
3#ifdef _WIN32
4#include <windows.h>
5#endif
6namespace subprocess {
7#ifdef _WIN32
8 // these functions are only revelant on windows and aren't even needed for
9 // being cross-platform
10 std::u16string utf8_to_utf16(const std::string& str);
11 std::string utf16_to_utf8(const std::u16string& str);
12
13 std::wstring utf8_to_utf16_w(const std::string& str);
14 std::string utf16_to_utf8(const std::wstring& str);
15 size_t strlen16(char16_t* str);
16 size_t strlen16(wchar_t* str);
17
18 std::string lptstr_to_string(LPTSTR str);
19#endif
20}
21
Definition basic_types.hpp:22