/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
find.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); 24 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); 25 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); 26 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0) [all...] |
assign3.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 char32_t s2[3] = {0}; 24 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); 25 assert(s2[0] == char32_t(5)); 26 assert(s2[1] == char32_t(5)); 27 assert(s2[2] == char32_t(5)); 28 assert(std::char_traits<char32_t>::assign(NULL, 0, char32_t(5)) == NULL) [all...] |
copy.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 char32_t s2[3] = {0}; 24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2); 25 assert(s2[0] == char32_t(1)); 26 assert(s2[1] == char32_t(2)); 27 assert(s2[2] == char32_t(3)); 28 assert(std::char_traits<char32_t>::copy(NULL, s1, 0) == NULL); 29 assert(std::char_traits<char32_t>::copy(s1, NULL, 0) == s1);
|
move.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char32_t>::move(s1, s1+1, 2) == s1); 24 assert(s1[0] == char32_t(2)); 25 assert(s1[1] == char32_t(3)); 26 assert(s1[2] == char32_t(3)); 27 s1[2] = char32_t(0); 28 assert(std::char_traits<char32_t>::move(s1+1, s1, 2) == s1+1); 29 assert(s1[0] == char32_t(2)); 30 assert(s1[1] == char32_t(2)) [all...] |
not_eof.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); 24 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); 26 assert(std::char_traits<char32_t>::not_eof(0) == 0); 27 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != 28 std::char_traits<char32_t>::eof());
|
eof.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 std::char_traits<char32_t>::int_type i = std::char_traits<char32_t>::eof();
|
compare.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); 24 assert(std::char_traits<char32_t>::compare(NULL, NULL, 0) == 0); 26 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); 27 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); 28 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); 30 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); 31 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); 32 assert(std::char_traits<char32_t>::compare(U"12", U"22", 2) < 0); 33 assert(std::char_traits<char32_t>::compare(U"13", U"12", 2) > 0) [all...] |
eq_int_type.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); 24 assert(!std::char_traits<char32_t>::eq_int_type(U'a', U'A')); 25 assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A')); 27 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), 28 std::char_traits<char32_t>::eof()));
|
length.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert(std::char_traits<char32_t>::length(U"") == 0); 24 assert(std::char_traits<char32_t>::length(U"a") == 1); 25 assert(std::char_traits<char32_t>::length(U"aa") == 2); 26 assert(std::char_traits<char32_t>::length(U"aaa") == 3); 27 assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
|
types.pass.cpp | 12 // template<> struct char_traits<char32_t> 14 // typedef char32_t char_type; 27 static_assert((std::is_same<std::char_traits<char32_t>::char_type, char32_t>::value), ""); 28 static_assert((std::is_same<std::char_traits<char32_t>::int_type, std::uint_least32_t>::value), ""); 29 static_assert((std::is_same<std::char_traits<char32_t>::off_type, std::streamoff>::value), ""); 30 static_assert((std::is_same<std::char_traits<char32_t>::pos_type, std::u32streampos>::value), ""); 31 static_assert((std::is_same<std::char_traits<char32_t>::state_type, std::mbstate_t>::value), "");
|
assign2.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 char32_t c = U'\0'; 24 std::char_traits<char32_t>::assign(c, U'a');
|
eq.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 char32_t c = U'\0'; 24 assert(std::char_traits<char32_t>::eq(U'a', U'a')); 25 assert(!std::char_traits<char32_t>::eq(U'a', U'A'));
|
lt.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 char32_t c = U'\0'; 24 assert(!std::char_traits<char32_t>::lt(U'a', U'a')); 25 assert( std::char_traits<char32_t>::lt(U'A', U'a'));
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
assign3.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 char32_t s2[3] = {0}; 24 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); 25 assert(s2[0] == char32_t(5)); 26 assert(s2[1] == char32_t(5)); 27 assert(s2[2] == char32_t(5));
|
find.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); 24 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); 25 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); 26 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0) [all...] |
copy.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 char32_t s2[3] = {0}; 24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2); 25 assert(s2[0] == char32_t(1)); 26 assert(s2[1] == char32_t(2)); 27 assert(s2[2] == char32_t(3));
|
move.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char32_t>::move(s1, s1+1, 2) == s1); 24 assert(s1[0] == char32_t(2)); 25 assert(s1[1] == char32_t(3)); 26 assert(s1[2] == char32_t(3)); 27 s1[2] = char32_t(0); 28 assert(std::char_traits<char32_t>::move(s1+1, s1, 2) == s1+1); 29 assert(s1[0] == char32_t(2)); 30 assert(s1[1] == char32_t(2)) [all...] |
eq_int_type.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); 23 assert(!std::char_traits<char32_t>::eq_int_type(U'a', U'A')); 24 assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A')); 25 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), 26 std::char_traits<char32_t>::eof()));
|
not_eof.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); 23 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); 24 assert(std::char_traits<char32_t>::not_eof(0) == 0); 25 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != 26 std::char_traits<char32_t>::eof());
|
eof.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 std::char_traits<char32_t>::int_type i = std::char_traits<char32_t>::eof();
|
compare.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); 24 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); 25 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); 26 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); 28 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); 29 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); 30 assert(std::char_traits<char32_t>::compare(U"12", U"22", 2) < 0); 31 assert(std::char_traits<char32_t>::compare(U"13", U"12", 2) > 0); 32 assert(std::char_traits<char32_t>::compare(U"22", U"12", 2) > 0) [all...] |
length.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 assert(std::char_traits<char32_t>::length(U"") == 0); 23 assert(std::char_traits<char32_t>::length(U"a") == 1); 24 assert(std::char_traits<char32_t>::length(U"aa") == 2); 25 assert(std::char_traits<char32_t>::length(U"aaa") == 3); 26 assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
|
types.pass.cpp | 12 // template<> struct char_traits<char32_t> 14 // typedef char32_t char_type; 27 static_assert((std::is_same<std::char_traits<char32_t>::char_type, char32_t>::value), ""); 28 static_assert((std::is_same<std::char_traits<char32_t>::int_type, std::uint_least32_t>::value), ""); 29 static_assert((std::is_same<std::char_traits<char32_t>::off_type, std::streamoff>::value), ""); 30 static_assert((std::is_same<std::char_traits<char32_t>::pos_type, std::u32streampos>::value), ""); 31 static_assert((std::is_same<std::char_traits<char32_t>::state_type, std::mbstate_t>::value), "");
|
assign2.pass.cpp | 12 // template<> struct char_traits<char32_t> 22 char32_t c = U'\0'; 23 std::char_traits<char32_t>::assign(c, U'a');
|
/external/clang/test/Lexer/ |
unicode-strings.c | 8 typedef __CHAR32_TYPE__ char32_t; typedef 11 // expected-warning@18 {{'char32_t' type specifier is incompatible with C++98}} 13 // expected-warning@21 {{'char32_t' type specifier is incompatible with C++98}} 18 const char32_t *c = U"abcd"; // expected-warning {{unicode literals are incompatible with}} 21 char32_t e = U'a'; // expected-warning {{unicode literals are incompatible with}}
|