10using namespace Microsoft::VisualStudio::CppUnitTestFramework;
22 stdex::str2wstr(
"This is a test.", stdex::charset_id::utf8).c_str());
24 L
"Th\u00ed\u0161 i\u22c5 a te\u0073\u0304t. 😀😅",
25 stdex::str2wstr(
"Thíš i⋅ a tes̄t. 😀😅", stdex::charset_id::utf8).c_str());
28 stdex::str2wstr(
"test", 0, stdex::charset_id::utf8).c_str());
31 stdex::str2wstr(
nullptr, 0, stdex::charset_id::utf8).c_str());
38 stdex::wstr2str(L
"This is a test.", stdex::charset_id::utf8).c_str());
40 "Th\xc3\xad\xc5\xa1 i\xe2\x8b\x85 a tes\xcc\x84t. \xf0\x9f\x98\x80\xf0\x9f\x98\x85",
41 stdex::wstr2str(L
"Thíš i⋅ a tes̄t. 😀😅", stdex::charset_id::utf8).c_str());
44 stdex::wstr2str(L
"test", 0, stdex::charset_id::utf8).c_str());
47 stdex::wstr2str(
nullptr, 0, stdex::charset_id::utf8).c_str());