Searched refs:myconv (Results 1 – 9 of 9) sorted by relevance
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
D | converted.pass.cpp | 37 Myconv myconv; in test() local 38 assert(myconv.converted() == 0); in test() 39 std::string bs = myconv.to_bytes(L"\x1005"); in test() 40 assert(myconv.converted() == 1); in test() 41 bs = myconv.to_bytes(L"\x1005\x65"); in test() 42 assert(myconv.converted() == 2); in test() 43 std::wstring ws = myconv.from_bytes("\xE1\x80\x85"); in test() 44 assert(myconv.converted() == 3); in test() 54 Myconv myconv; in test() local 55 assert(myconv.converted() == 0); in test() [all …]
|
D | from_bytes.pass.cpp | 38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local 40 std::wstring ws = myconv.from_bytes('a'); in test() 42 ws = myconv.from_bytes(bs.c_str()); in test() 44 ws = myconv.from_bytes(bs); in test() 46 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); in test() 48 ws = myconv.from_bytes(""); in test() 57 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local 59 std::wstring ws = myconv.from_bytes('a'); in test() 61 ws = myconv.from_bytes(bs.c_str()); in test() 63 ws = myconv.from_bytes(bs); in test() [all …]
|
D | to_bytes.pass.cpp | 38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local 40 std::string bs = myconv.to_bytes(ws[0]); in test() 42 bs = myconv.to_bytes(ws.c_str()); in test() 44 bs = myconv.to_bytes(ws); in test() 46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); in test() 48 bs = myconv.to_bytes(L""); in test() 57 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; in test() local 59 std::string bs = myconv.to_bytes(ws[0]); in test() 61 bs = myconv.to_bytes(ws.c_str()); in test() 63 bs = myconv.to_bytes(ws); in test() [all …]
|
D | ctor_err_string.pass.cpp | 33 Myconv myconv; in main() local 36 TEST_IGNORE_NODISCARD myconv.to_bytes(L"\xDA83"); in main() 44 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); in main() 53 Myconv myconv("byte error"); in main() local 54 std::string bs = myconv.to_bytes(L"\xDA83"); in main() 59 TEST_IGNORE_NODISCARD myconv.from_bytes('\xA5'); in main() 68 Myconv myconv("byte error", L"wide error"); in main() local 69 std::string bs = myconv.to_bytes(L"\xDA83"); in main() 71 std::wstring ws = myconv.from_bytes('\xA5'); 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 | 27 Myconv myconv; in main() local 28 assert(myconv.converted() == 0); in main() 33 Myconv myconv(new Codecvt); in main() local 34 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()
|
/external/libcxx/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ |
D | ctor_move.pass.cpp | 31 Myconv myconv; in main() local 32 myconv.from_bytes("\xF1\x80\x80\x83"); in main() 33 const auto old_converted = myconv.converted(); in main() 34 assert(myconv.converted() == 4); in main() 36 Myconv myconv2(std::move(myconv)); in main()
|