Home
last modified time | relevance | path

Searched refs:myconv (Results 1 – 8 of 8) sorted by relevance

/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
Dctor_err_string.pass.cpp30 Myconv myconv; in main() local
33 myconv.to_bytes(L"\xDA83"); in main()
41 myconv.from_bytes('\xA5'); in main()
49 Myconv myconv("byte error"); in main() local
50 std::string bs = myconv.to_bytes(L"\xDA83"); in main()
54 myconv.from_bytes('\xA5'); in main()
62 Myconv myconv("byte error", L"wide error"); in main() local
63 std::string bs = myconv.to_bytes(L"\xDA83"); in main()
65 std::wstring ws = myconv.from_bytes('\xA5'); in main()
Dconverted.pass.cpp24 Myconv myconv; in main() local
25 assert(myconv.converted() == 0); in main()
26 std::string bs = myconv.to_bytes(L"\x40003"); in main()
27 assert(myconv.converted() == 1); in main()
28 bs = myconv.to_bytes(L"\x40003\x65"); in main()
29 assert(myconv.converted() == 2); in main()
30 std::wstring ws = myconv.from_bytes("\xF1\x80\x80\x83"); in main()
31 assert(myconv.converted() == 4); in main()
Dto_bytes.pass.cpp26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; in main() local
28 std::string bs = myconv.to_bytes(ws[0]); in main()
30 bs = myconv.to_bytes(ws.c_str()); in main()
32 bs = myconv.to_bytes(ws); in main()
34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in main()
36 bs = myconv.to_bytes(L""); in main()
Dfrom_bytes.pass.cpp26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; in main() local
28 std::wstring ws = myconv.from_bytes('a'); in main()
30 ws = myconv.from_bytes(bs.c_str()); in main()
32 ws = myconv.from_bytes(bs); in main()
34 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in main()
36 ws = myconv.from_bytes(""); in main()
Dtypes.pass.cpp29 typedef std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; in main() typedef
30 static_assert((std::is_same<myconv::byte_string, std::string>::value), ""); in main()
31 static_assert((std::is_same<myconv::wide_string, std::wstring>::value), ""); in main()
32 static_assert((std::is_same<myconv::state_type, std::mbstate_t>::value), ""); in main()
33 … static_assert((std::is_same<myconv::int_type, std::char_traits<wchar_t>::int_type>::value), ""); in main()
Dctor_codecvt.pass.cpp25 Myconv myconv; in main() local
26 assert(myconv.converted() == 0); in main()
31 Myconv myconv(new Codecvt); in main() local
32 assert(myconv.converted() == 0); in main()
Dstate.pass.cpp23 Myconv myconv; in main() local
24 std::mbstate_t s = myconv.state(); in main()
Dctor_codecvt_state.pass.cpp25 Myconv myconv(new Codecvt, std::mbstate_t()); in main() local
26 assert(myconv.converted() == 0); in main()