HomeSort by relevance Sort by last modified time
    Searched refs:myconv (Results 1 - 16 of 16) sorted by null

  /external/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/
converted.pass.cpp 23 typedef std::wstring_convert<Codecvt> Myconv;
24 Myconv myconv; local
25 assert(myconv.converted() == 0);
26 std::string bs = myconv.to_bytes(L"\x40003");
27 assert(myconv.converted() == 1);
28 bs = myconv.to_bytes(L"\x40003\x65");
29 assert(myconv.converted() == 2);
30 std::wstring ws = myconv.from_bytes("\xF1\x80\x80\x83");
31 assert(myconv.converted() == 4)
    [all...]
ctor_err_string.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
26 static_assert(!std::is_convertible<std::string, Myconv>::value, "");
27 static_assert( std::is_constructible<Myconv, std::string>::value, "");
30 Myconv myconv; local
33 myconv.to_bytes(L"\xDA83");
41 myconv.from_bytes('\xA5');
49 Myconv myconv("byte error");
50 std::string bs = myconv.to_bytes(L"\xDA83")
    [all...]
from_bytes.pass.cpp 26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; local
28 std::wstring ws = myconv.from_bytes('a');
30 ws = myconv.from_bytes(bs.c_str());
32 ws = myconv.from_bytes(bs);
34 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size());
36 ws = myconv.from_bytes("");
to_bytes.pass.cpp 26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; local
28 std::string bs = myconv.to_bytes(ws[0]);
30 bs = myconv.to_bytes(ws.c_str());
32 bs = myconv.to_bytes(ws);
34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
36 bs = myconv.to_bytes(L"");
ctor_codecvt_state.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
25 Myconv myconv(new Codecvt, std::mbstate_t());
26 assert(myconv.converted() == 0);
state.pass.cpp 22 typedef std::wstring_convert<Codecvt> Myconv;
23 Myconv myconv; local
24 std::mbstate_t s = myconv.state();
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), "");
ctor_codecvt.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
25 Myconv myconv; local
26 assert(myconv.converted() == 0);
30 typedef std::wstring_convert<Codecvt> Myconv;
31 Myconv myconv(new Codecvt);
32 assert(myconv.converted() == 0);
34 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, "");
35 static_assert( std::is_constructible<Myconv, Codecvt*>::value, "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/
converted.pass.cpp 23 typedef std::wstring_convert<Codecvt> Myconv;
24 Myconv myconv; local
25 assert(myconv.converted() == 0);
26 std::string bs = myconv.to_bytes(L"\x40003");
27 assert(myconv.converted() == 1);
28 bs = myconv.to_bytes(L"\x40003\x65");
29 assert(myconv.converted() == 2);
30 std::wstring ws = myconv.from_bytes("\xF1\x80\x80\x83");
31 assert(myconv.converted() == 4)
    [all...]
ctor_err_string.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
26 static_assert(!std::is_convertible<std::string, Myconv>::value, "");
27 static_assert( std::is_constructible<Myconv, std::string>::value, "");
30 Myconv myconv; local
33 myconv.to_bytes(L"\xDA83");
41 myconv.from_bytes('\xA5');
49 Myconv myconv("byte error");
50 std::string bs = myconv.to_bytes(L"\xDA83")
    [all...]
from_bytes.pass.cpp 26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; local
28 std::wstring ws = myconv.from_bytes('a');
30 ws = myconv.from_bytes(bs.c_str());
32 ws = myconv.from_bytes(bs);
34 ws = myconv.from_bytes(bs.data(), bs.data() + bs.size());
36 ws = myconv.from_bytes("");
to_bytes.pass.cpp 26 std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv; local
28 std::string bs = myconv.to_bytes(ws[0]);
30 bs = myconv.to_bytes(ws.c_str());
32 bs = myconv.to_bytes(ws);
34 bs = myconv.to_bytes(ws.data(), ws.data() + ws.size());
36 bs = myconv.to_bytes(L"");
ctor_codecvt_state.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
25 Myconv myconv(new Codecvt, std::mbstate_t());
26 assert(myconv.converted() == 0);
state.pass.cpp 22 typedef std::wstring_convert<Codecvt> Myconv;
23 Myconv myconv; local
24 std::mbstate_t s = myconv.state();
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), "");
ctor_codecvt.pass.cpp 24 typedef std::wstring_convert<Codecvt> Myconv;
25 Myconv myconv; local
26 assert(myconv.converted() == 0);
30 typedef std::wstring_convert<Codecvt> Myconv;
31 Myconv myconv(new Codecvt);
32 assert(myconv.converted() == 0);
34 static_assert(!std::is_convertible<Codecvt*, Myconv>::value, "");
35 static_assert( std::is_constructible<Myconv, Codecvt*>::value, "")
    [all...]

Completed in 1155 milliseconds