Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/
H A Dconverted.pass.cpp42 Myconv myconv; in test() local
43 assert(myconv.converted() == 0); in test()
45 assert(myconv.converted() == 1); in test()
46 bs = myconv.to_bytes(L"\u1005e"); in test()
47 assert(myconv.converted() == 2); in test()
49 assert(myconv.converted() == 3); in test()
59 Myconv myconv; in test() local
60 assert(myconv.converted() == 0); in test()
62 assert(myconv.converted() == 1); in test()
64 assert(myconv.converted() == 2); in test()
[all …]
H A Dto_bytes.pass.cpp43 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local
45 std::string bs = myconv.to_bytes(ws[0]); in test()
47 bs = myconv.to_bytes(ws.c_str()); in test()
49 bs = myconv.to_bytes(ws); in test()
51 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in test()
53 bs = myconv.to_bytes(L""); in test()
62 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local
64 std::string bs = myconv.to_bytes(ws[0]); in test()
66 bs = myconv.to_bytes(ws.c_str()); in test()
68 bs = myconv.to_bytes(ws); in test()
[all …]
H A Dfrom_bytes.pass.cpp43 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local
45 std::wstring ws = myconv.from_bytes('a'); in test()
47 ws = myconv.from_bytes(bs.c_str()); in test()
49 ws = myconv.from_bytes(bs); in test()
51 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in test()
53 ws = myconv.from_bytes(""); in test()
62 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local
64 std::wstring ws = myconv.from_bytes('a'); in test()
66 ws = myconv.from_bytes(bs.c_str()); in test()
68 ws = myconv.from_bytes(bs); in test()
[all …]
H A Dctor_err_string.pass.cpp36 Myconv myconv; in main() local
39 TEST_IGNORE_NODISCARD myconv.to_bytes(L"\xDA83"); in main()
47 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); in main()
56 Myconv myconv("byte error"); in main() local
57 std::string bs = myconv.to_bytes(L"\xDA83"); in main()
62 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); in main()
71 Myconv myconv("byte error", L"wide error"); in main() local
72 std::string bs = myconv.to_bytes(L"\xDA83"); in main()
74 std::wstring ws = myconv.from_bytes('\xA5'); in main()
H A Dtypes.pass.cpp34 typedef std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; in main() typedef
35 static_assert((std::is_same<myconv::byte_string, std::string>::value), ""); in main()
36 static_assert((std::is_same<myconv::wide_string, std::wstring>::value), ""); in main()
37 static_assert((std::is_same<myconv::state_type, std::mbstate_t>::value), ""); in main()
38 … static_assert((std::is_same<myconv::int_type, std::char_traits<wchar_t>::int_type>::value), ""); in main()
H A Dctor_codecvt.pass.cpp36 Myconv myconv; in main() local
37 assert(myconv.converted() == 0); in main()
42 Myconv myconv(new Codecvt); in main() local
43 assert(myconv.converted() == 0); in main()
H A Dctor_codecvt_state.pass.cpp30 Myconv myconv(new Codecvt, std::mbstate_t()); in main() local
31 assert(myconv.converted() == 0); in main()
H A Dstate.pass.cpp28 Myconv myconv; in main() local
29 std::mbstate_t s = myconv.state(); in main()
/llvm-project-15.0.7/libcxx/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/
H A Dctor_move.pass.cpp33 Myconv myconv; in main() local
34 myconv.from_bytes("\xEF\xBF\xBD"); in main()
35 const auto old_converted = myconv.converted(); in main()
36 assert(myconv.converted() == 3); in main()
38 Myconv myconv2(std::move(myconv)); in main()