Searched defs:myconv (Results 1 - 8 of 8) sorted by relevance
/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.string/ |
H A D | types.pass.cpp | 29 typedef std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; typedef 30 static_assert((std::is_same<myconv::byte_string, std::string>::value), ""); 31 static_assert((std::is_same<myconv::wide_string, std::wstring>::value), ""); 32 static_assert((std::is_same<myconv::state_type, std::mbstate_t>::value), ""); 33 static_assert((std::is_same<myconv::int_type, std::char_traits<wchar_t>::int_type>::value), "");
|
H A D | ctor_codecvt.pass.cpp | 27 Myconv myconv; local 28 assert(myconv.converted() == 0); 33 Myconv myconv(new Codecvt); 34 assert(myconv.converted() == 0);
|
H A D | from_bytes.pass.cpp | 38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; local 40 std::wstring ws = myconv.from_bytes('a'); 42 ws = myconv.from_bytes(bs.c_str()); 44 ws = myconv.from_bytes(bs); 46 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size()); 48 ws = myconv.from_bytes(""); 57 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; local 59 std::wstring ws = myconv.from_bytes('a'); 61 ws = myconv.from_bytes(bs.c_str()); 63 ws = myconv [all...] |
H A D | state.pass.cpp | 23 Myconv myconv; local 24 std::mbstate_t s = myconv.state();
|
H A D | to_bytes.pass.cpp | 38 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; local 40 std::string bs = myconv.to_bytes(ws[0]); 42 bs = myconv.to_bytes(ws.c_str()); 44 bs = myconv.to_bytes(ws); 46 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size()); 48 bs = myconv.to_bytes(L""); 57 std::wstring_convert<std::codecvt_utf8<CharT> > myconv; local 59 std::string bs = myconv.to_bytes(ws[0]); 61 bs = myconv.to_bytes(ws.c_str()); 63 bs = myconv [all...] |
H A D | ctor_err_string.pass.cpp | 33 Myconv myconv; local 36 myconv.to_bytes(L"\xDA83"); 44 myconv.from_bytes('\xA5'); 53 Myconv myconv("byte error"); 54 std::string bs = myconv.to_bytes(L"\xDA83"); 59 myconv.from_bytes('\xA5'); 68 Myconv myconv("byte error", L"wide error"); 69 std::string bs = myconv.to_bytes(L"\xDA83"); 71 std::wstring ws = myconv.from_bytes('\xA5');
|
H A D | converted.pass.cpp | 37 Myconv myconv; local 38 assert(myconv.converted() == 0); 39 std::string bs = myconv.to_bytes(L"\x1005"); 40 assert(myconv.converted() == 1); 41 bs = myconv.to_bytes(L"\x1005\x65"); 42 assert(myconv.converted() == 2); 43 std::wstring ws = myconv.from_bytes("\xE1\x80\x85"); 44 assert(myconv.converted() == 3); 54 Myconv myconv; local 55 assert(myconv [all...] |
/external/libcxx/test/libcxx/localization/locales/locale.convenience/conversions/conversions.string/ |
H A D | ctor_move.pass.cpp | 31 Myconv myconv; local 32 myconv.from_bytes("\xF1\x80\x80\x83"); 33 const auto old_converted = myconv.converted(); 34 assert(myconv.converted() == 4); 36 Myconv myconv2(std::move(myconv));
|
Completed in 205 milliseconds