/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...] |
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...] |
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...] |
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...] |
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);
|
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()));
|
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), "");
|
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());
|
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);
|
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'));
|
to_char_type.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert(std::char_traits<char32_t>::to_char_type(U'a') == U'a'); 24 assert(std::char_traits<char32_t>::to_char_type(U'A') == U'A'); 26 assert(std::char_traits<char32_t>::to_char_type(0) == 0);
|
to_int_type.pass.cpp | 12 // template<> struct char_traits<char32_t> 23 assert(std::char_traits<char32_t>::to_int_type(U'a') == U'a'); 24 assert(std::char_traits<char32_t>::to_int_type(U'A') == U'A'); 26 assert(std::char_traits<char32_t>::to_int_type(0) == 0);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
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...] |
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...] |
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...] |
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));
|
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));
|
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()));
|
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), "");
|
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());
|
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);
|
/external/clang/test/Parser/ |
char-literal-printing.c | 52 char32_t test39(void) { return U'\\'; } 53 char32_t test40(void) { return U'\''; } 54 char32_t test41(void) { return U'\a'; } 55 char32_t test42(void) { return U'\b'; } 56 char32_t test43(void) { return U'\e'; } 57 char32_t test44(void) { return U'\f'; } 58 char32_t test45(void) { return U'\n'; } 59 char32_t test46(void) { return U'\r'; } 60 char32_t test47(void) { return U'\t'; } 61 char32_t test48(void) { return U'\v'; [all...] |
/external/clang/test/SemaCXX/ |
cxx0x-type-convert-construct.cpp | 8 char32_t *Ustr; 9 Ustr = U"a UTF-32 string"; // expected-error {{assigning to 'char32_t *' from incompatible type 'const char32_t [16]'}} 19 char32_t *URstr; 20 URstr = UR"foo(a UTF-32 raw string)foo"; // expected-error {{assigning to 'char32_t *' from incompatible type 'const char32_t [20]'}}
|
/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}}
|