File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || \
1
+ #if defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || \
2
2
defined (WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || \
3
3
defined(WINCE) || defined(_WIN32_WCE)
4
4
11
11
12
12
TEST (Platform, to_tchar) {
13
13
char const *utf8 = " hello world, "
14
- " \xE6\xB5\xA3\xE7\x8A\xB2\xE3 \x82\xBD\xE9 \x94\x9B\xE5\xB1\xBB\xE4 "
15
- " \xBA\xBE\xE9\x8A \x88\xE6 \x92\xB1\xE4\xBC \x80\xE9\x8A \x87\xC2\xB0 "
16
- " \xE4\xBC \x85 " ;
17
- wchar_t const *utf16 = L" hello world, \x6D63\x72B2\x30BD\x951B\x5C7B\x4EBE\x9288\x64B1\x4F00\x9287\xB0\x4F05 " ;
14
+ " \xe6\xb5\xa3\xe7\x8a\xb2\xe3 \x82\xbd\xe9 \x94\x9b\xe5\xb1\xbb\xe4 "
15
+ " \xba\xbe\xe9\x8a \x88\xe6 \x92\xb1\xe4\xbc \x80\xe9\x8a \x87\xc2\xb0 "
16
+ " \xe4\xbc \x85 " ;
17
+ wchar_t const *utf16 = L" hello world, \u4f60\u597d\uff0c\u3053\u3093\u306b\u3061\u306f " ;
18
18
{
19
19
ipc::string str = ipc::detail::to_tchar<char >(utf8);
20
20
EXPECT_STREQ (str.c_str (), utf8);
You can’t perform that action at this time.
0 commit comments