OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:myconv
(Results
1 - 7
of
7
) sorted by null
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.string/
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);
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"");
state.pass.cpp
22
typedef std::wstring_convert<Codecvt>
Myconv
;
23
Myconv
myconv
;
local
24
std::mbstate_t s =
myconv
.state();
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
Myconv
myconv
;
local
29
myconv
.to_bytes(L"\xDA83");
37
myconv
.from_bytes('\xA5');
45
Myconv
myconv
("byte error");
46
std::string bs =
myconv
.to_bytes(L"\xDA83");
50
myconv
.from_bytes('\xA5');
58
Myconv
myconv("byte error", L"wide error")
[
all
...]
Completed in 557 milliseconds