Home
last modified time | relevance | path

Searched refs:char_traits (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
Dcompare.pass.cpp21 assert(std::char_traits<char>::compare("", "", 0) == 0); in main()
22 assert(std::char_traits<char>::compare(NULL, NULL, 0) == 0); in main()
24 assert(std::char_traits<char>::compare("1", "1", 1) == 0); in main()
25 assert(std::char_traits<char>::compare("1", "2", 1) < 0); in main()
26 assert(std::char_traits<char>::compare("2", "1", 1) > 0); in main()
28 assert(std::char_traits<char>::compare("12", "12", 2) == 0); in main()
29 assert(std::char_traits<char>::compare("12", "13", 2) < 0); in main()
30 assert(std::char_traits<char>::compare("12", "22", 2) < 0); in main()
31 assert(std::char_traits<char>::compare("13", "12", 2) > 0); in main()
32 assert(std::char_traits<char>::compare("22", "12", 2) > 0); in main()
[all …]
Deq_int_type.pass.cpp21 assert( std::char_traits<char>::eq_int_type('a', 'a')); in main()
22 assert(!std::char_traits<char>::eq_int_type('a', 'A')); in main()
23 assert(!std::char_traits<char>::eq_int_type(std::char_traits<char>::eof(), 'A')); in main()
24 assert( std::char_traits<char>::eq_int_type(std::char_traits<char>::eof(), in main()
25 std::char_traits<char>::eof())); in main()
Dnot_eof.pass.cpp21 assert(std::char_traits<char>::not_eof('a') == 'a'); in main()
22 assert(std::char_traits<char>::not_eof('A') == 'A'); in main()
23 assert(std::char_traits<char>::not_eof(0) == 0); in main()
24 assert(std::char_traits<char>::not_eof(std::char_traits<char>::eof()) != in main()
25 std::char_traits<char>::eof()); in main()
Dlt.pass.cpp22 assert(!std::char_traits<char>::lt('a', 'a')); in main()
23 assert( std::char_traits<char>::lt('A', 'a')); in main()
24 assert(!std::char_traits<char>::lt('A' + 127, 'a')); in main()
25 assert(!std::char_traits<char>::lt('A' - 127, 'a')); in main()
26 assert( std::char_traits<char>::lt('A', 'a' + 127)); in main()
27 assert( std::char_traits<char>::lt('A', 'a' - 127)); in main()
Dfind.pass.cpp22 assert(std::char_traits<char>::find(s1, 3, char(1)) == s1); in main()
23 assert(std::char_traits<char>::find(s1, 3, char(2)) == s1+1); in main()
24 assert(std::char_traits<char>::find(s1, 3, char(3)) == s1+2); in main()
25 assert(std::char_traits<char>::find(s1, 3, char(4)) == 0); in main()
26 assert(std::char_traits<char>::find(s1, 3, char(0)) == 0); in main()
27 assert(std::char_traits<char>::find(NULL, 0, char(0)) == 0); in main()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
Dcompare.pass.cpp21 assert(std::char_traits<wchar_t>::compare(L"", L"", 0) == 0); in main()
22 assert(std::char_traits<wchar_t>::compare(NULL, NULL, 0) == 0); in main()
24 assert(std::char_traits<wchar_t>::compare(L"1", L"1", 1) == 0); in main()
25 assert(std::char_traits<wchar_t>::compare(L"1", L"2", 1) < 0); in main()
26 assert(std::char_traits<wchar_t>::compare(L"2", L"1", 1) > 0); in main()
28 assert(std::char_traits<wchar_t>::compare(L"12", L"12", 2) == 0); in main()
29 assert(std::char_traits<wchar_t>::compare(L"12", L"13", 2) < 0); in main()
30 assert(std::char_traits<wchar_t>::compare(L"12", L"22", 2) < 0); in main()
31 assert(std::char_traits<wchar_t>::compare(L"13", L"12", 2) > 0); in main()
32 assert(std::char_traits<wchar_t>::compare(L"22", L"12", 2) > 0); in main()
[all …]
Deq_int_type.pass.cpp21 assert( std::char_traits<wchar_t>::eq_int_type(L'a', L'a')); in main()
22 assert(!std::char_traits<wchar_t>::eq_int_type(L'a', L'A')); in main()
23 assert(!std::char_traits<wchar_t>::eq_int_type(std::char_traits<wchar_t>::eof(), L'A')); in main()
24 assert( std::char_traits<wchar_t>::eq_int_type(std::char_traits<wchar_t>::eof(), in main()
25 std::char_traits<wchar_t>::eof())); in main()
Dnot_eof.pass.cpp21 assert(std::char_traits<wchar_t>::not_eof(L'a') == L'a'); in main()
22 assert(std::char_traits<wchar_t>::not_eof(L'A') == L'A'); in main()
23 assert(std::char_traits<wchar_t>::not_eof(0) == 0); in main()
24 assert(std::char_traits<wchar_t>::not_eof(std::char_traits<wchar_t>::eof()) != in main()
25 std::char_traits<wchar_t>::eof()); in main()
Dfind.pass.cpp22 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(1)) == s1); in main()
23 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(2)) == s1+1); in main()
24 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(3)) == s1+2); in main()
25 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(4)) == 0); in main()
26 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(0)) == 0); in main()
27 assert(std::char_traits<wchar_t>::find(NULL, 0, wchar_t(0)) == 0); in main()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
Dcompare.pass.cpp23 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); in main()
24 assert(std::char_traits<char16_t>::compare(NULL, NULL, 0) == 0); in main()
26 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); in main()
27 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); in main()
28 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); in main()
30 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); in main()
31 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); in main()
32 assert(std::char_traits<char16_t>::compare(u"12", u"22", 2) < 0); in main()
33 assert(std::char_traits<char16_t>::compare(u"13", u"12", 2) > 0); in main()
34 assert(std::char_traits<char16_t>::compare(u"22", u"12", 2) > 0); in main()
[all …]
Deq_int_type.pass.cpp23 assert( std::char_traits<char16_t>::eq_int_type(u'a', u'a')); in main()
24 assert(!std::char_traits<char16_t>::eq_int_type(u'a', u'A')); in main()
25 assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A')); in main()
27 assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), in main()
28 std::char_traits<char16_t>::eof())); in main()
Dnot_eof.pass.cpp23 assert(std::char_traits<char16_t>::not_eof(u'a') == u'a'); in main()
24 assert(std::char_traits<char16_t>::not_eof(u'A') == u'A'); in main()
26 assert(std::char_traits<char16_t>::not_eof(0) == 0); in main()
27 assert(std::char_traits<char16_t>::not_eof(std::char_traits<char16_t>::eof()) != in main()
28 std::char_traits<char16_t>::eof()); in main()
Dfind.pass.cpp23 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); in main()
24 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); in main()
25 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); in main()
26 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0); in main()
27 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(0)) == 0); in main()
28 assert(std::char_traits<char16_t>::find(NULL, 0, char16_t(0)) == 0); in main()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dcompare.pass.cpp23 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); in main()
24 assert(std::char_traits<char32_t>::compare(NULL, NULL, 0) == 0); in main()
26 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); in main()
27 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); in main()
28 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); in main()
30 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); in main()
31 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); in main()
32 assert(std::char_traits<char32_t>::compare(U"12", U"22", 2) < 0); in main()
33 assert(std::char_traits<char32_t>::compare(U"13", U"12", 2) > 0); in main()
34 assert(std::char_traits<char32_t>::compare(U"22", U"12", 2) > 0); in main()
[all …]
Deq_int_type.pass.cpp23 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); in main()
24 assert(!std::char_traits<char32_t>::eq_int_type(U'a', U'A')); in main()
25 assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A')); in main()
27 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), in main()
28 std::char_traits<char32_t>::eof())); in main()
Dnot_eof.pass.cpp23 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); in main()
24 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); in main()
26 assert(std::char_traits<char32_t>::not_eof(0) == 0); in main()
27 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != in main()
28 std::char_traits<char32_t>::eof()); in main()
Dfind.pass.cpp23 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); in main()
24 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); in main()
25 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); in main()
26 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0); in main()
27 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(0)) == 0); in main()
28 assert(std::char_traits<char32_t>::find(NULL, 0, char32_t(0)) == 0); in main()
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dpbackfail.pass.cpp44 assert(sb.snextc() == std::char_traits<char>::eof()); in main()
46 assert(sb.pbackfail('3') == std::char_traits<char>::eof()); in main()
48 assert(sb.pbackfail(std::char_traits<char>::eof()) != std::char_traits<char>::eof()); in main()
49 assert(sb.pbackfail(std::char_traits<char>::eof()) == std::char_traits<char>::eof()); in main()
58 assert(sb.snextc() == std::char_traits<char>::eof()); in main()
61 assert(sb.pbackfail(std::char_traits<char>::eof()) != std::char_traits<char>::eof()); in main()
62 assert(sb.pbackfail(std::char_traits<char>::eof()) == std::char_traits<char>::eof()); in main()
71 assert(sb.snextc() == std::char_traits<wchar_t>::eof()); in main()
73 assert(sb.pbackfail(L'3') == std::char_traits<wchar_t>::eof()); in main()
75 assert(sb.pbackfail(std::char_traits<wchar_t>::eof()) != std::char_traits<wchar_t>::eof()); in main()
[all …]
/external/libcxx/include/
Diosfwd20 template<class charT> struct char_traits;
24 template <class charT, class traits = char_traits<charT> > class basic_ios;
26 template <class charT, class traits = char_traits<charT> > class basic_streambuf;
27 template <class charT, class traits = char_traits<charT> > class basic_istream;
28 template <class charT, class traits = char_traits<charT> > class basic_ostream;
29 template <class charT, class traits = char_traits<charT> > class basic_iostream;
31 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
33 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
35 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
37 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
[all …]
/external/llvm/test/CodeGen/X86/
Dpr1505b.ll6char_traits<char> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<char,std::char_…
7 …ct.std::basic_ostream<char,std::char_traits<char> >" = type { i32 (...)**, %"struct.std::basic_ios…
8 …%"struct.std::basic_streambuf<char,std::char_traits<char> >" = type { i32 (...)**, i8*, i8*, i8*, …
17 …%"struct.std::num_get<char,std::istreambuf_iterator<char, std::char_traits<char> > >" = type { %"s…
22 … %"struct.std::basic_ostream<char,std::char_traits<char> >" ; <%"struct.std::basic_ostream<char,s…
51char_traits<char> >"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc( %"struct.std::basi…
57char_traits<char> >"* @_ZNSolsEd( %"struct.std::basic_ostream<char,std::char_traits<char> >"* %tmp…
58char_traits<char> >"* @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_( %"struct.std::b…
61char_traits<char> >"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc( %"struct.std::basi…
66char_traits<char> >"* @_ZNSolsEd( %"struct.std::basic_ostream<char,std::char_traits<char> >"* %tmp…
[all …]
/external/llvm/test/Transforms/Inline/
D2006-11-09-InlineCGUpdate.ll10 …%"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::a…
11 …%"struct.__gnu_cxx::__normal_iterator<const wchar_t*,std::basic_string<wchar_t, std::char_traits<w…
13 …u_cxx::stdio_sync_filebuf<char,std::char_traits<char> >" = type { %"struct.std::basic_streambuf<ch…
14 …:stdio_sync_filebuf<wchar_t,std::char_traits<wchar_t> >" = type { %"struct.std::basic_streambuf<wc…
20 …struct.std::basic_filebuf<char,std::char_traits<char> >" = type { %"struct.std::basic_streambuf<ch…
21 ….std::basic_filebuf<wchar_t,std::char_traits<wchar_t> >" = type { %"struct.std::basic_streambuf<wc…
22char_traits<char> >" = type { { %"struct.std::locale::facet", %"struct.__gnu_cxx::char_producer<ch…
23char_traits<wchar_t> >" = type { { %"struct.std::locale::facet", %"struct.__gnu_cxx::char_producer…
24char_traits<char> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<char,std::char_…
25char_traits<wchar_t> >" = type { %"struct.std::ios_base", %"struct.std::basic_ostream<wchar_t,std:…
[all …]
/external/llvm/test/CodeGen/Thumb2/
D2009-10-15-ITBlockBranch.ll5 %"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::al…
7 …har,std::char_traits<char>,std::allocator<char> >" = type { %"struct.__gnu_cxx::__normal_iterator<…
8 …:basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep" = type { %"struct.std::bas…
9 %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" = type { …
12 …td::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this, %"struct.std::basic_s…
18 …m_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
19 …m_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
22 …apcs_vfpcc i8* @_ZNKSs7_M_dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
23 …m_aapcs_vfpcc i8* @_ZNKSs4dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
38 declare arm_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,s…
[all …]
Dv8_IT_4.ll6 %"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::al…
8 …har,std::char_traits<char>,std::allocator<char> >" = type { %"struct.__gnu_cxx::__normal_iterator<…
9 …:basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep" = type { %"struct.std::bas…
10 %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" = type { …
13 …td::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this, %"struct.std::basic_s…
21 …m_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
22 …m_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
25 …apcs_vfpcc i8* @_ZNKSs7_M_dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
26 …m_aapcs_vfpcc i8* @_ZNKSs4dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allo…
41 declare arm_aapcs_vfpcc i32 @_ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,s…
[all …]
/external/clang/test/CodeGenCXX/
Dmangle-subst-std.cpp39 template<typename> struct char_traits { }; struct
41 typedef std::basic_string<char, std::char_traits<char>, std::allocator<char> > string;
52 template<typename charT, typename traits = char_traits<charT> >
58 template<typename charT, typename traits = char_traits<charT> >
65 template<typename charT, typename traits = char_traits<charT> >
75 void f(std::basic_istream<char, std::char_traits<char> >) { } in f()
78 void f(std::basic_ostream<char, std::char_traits<char> >) { } in f()
81 void f(std::basic_iostream<char, std::char_traits<char> >) { } in f()
96 typedef basic_string<char, std::char_traits<char>, std::allocator<char> > not_string;
/external/libcxx/test/std/input.output/stream.buffers/streambuf/
Dtypes.pass.cpp29 static_assert((std::is_same<std::streambuf::traits_type, std::char_traits<char> >::value), ""); in main()
30 …static_assert((std::is_same<std::streambuf::int_type, std::char_traits<char>::int_type>::value), "… in main()
31 …static_assert((std::is_same<std::streambuf::pos_type, std::char_traits<char>::pos_type>::value), "… in main()
32 …static_assert((std::is_same<std::streambuf::off_type, std::char_traits<char>::off_type>::value), "… in main()
35 …static_assert((std::is_same<std::wstreambuf::traits_type, std::char_traits<wchar_t> >::value), ""); in main()
36 …static_assert((std::is_same<std::wstreambuf::int_type, std::char_traits<wchar_t>::int_type>::value… in main()
37 …static_assert((std::is_same<std::wstreambuf::pos_type, std::char_traits<wchar_t>::pos_type>::value… in main()
38 …static_assert((std::is_same<std::wstreambuf::off_type, std::char_traits<wchar_t>::off_type>::value… in main()

12345678910>>...14