Searched refs:myconv (Results 1 – 8 of 8) sorted by relevance
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
D | ctor_err_string.pass.cpp | 30 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()
|
D | converted.pass.cpp | 24 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()
|
D | to_bytes.pass.cpp | 26 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()
|
D | from_bytes.pass.cpp | 26 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()
|
D | types.pass.cpp | 29 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()
|
D | ctor_codecvt.pass.cpp | 25 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()
|
D | state.pass.cpp | 23 Myconv myconv; in main() local 24 std::mbstate_t s = myconv.state(); in main()
|
D | ctor_codecvt_state.pass.cpp | 25 Myconv myconv(new Codecvt, std::mbstate_t()); in main() local 26 assert(myconv.converted() == 0); in main()
|