/external/clang/test/CodeGenCXX/ |
debug-info-char16.cpp | 4 char16_t char_a = u'h'; 6 // CHECK: !{{.*}} = !DIBasicType(name: "char16_t"
|
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
find.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); 24 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); 25 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); 26 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0) [all...] |
assign3.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 char16_t s2[3] = {0}; 24 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); 25 assert(s2[0] == char16_t(5)); 26 assert(s2[1] == char16_t(5)); 27 assert(s2[2] == char16_t(5)); 28 assert(std::char_traits<char16_t>::assign(NULL, 0, char16_t(5)) == NULL) [all...] |
copy.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 char16_t s2[3] = {0}; 24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); 25 assert(s2[0] == char16_t(1)); 26 assert(s2[1] == char16_t(2)); 27 assert(s2[2] == char16_t(3)); 28 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL); 29 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1);
|
move.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); 24 assert(s1[0] == char16_t(2)); 25 assert(s1[1] == char16_t(3)); 26 assert(s1[2] == char16_t(3)); 27 s1[2] = char16_t(0); 28 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); 29 assert(s1[0] == char16_t(2)); 30 assert(s1[1] == char16_t(2)) [all...] |
not_eof.pass.cpp | 12 // template<> struct char_traits<char16_t> 23 assert(std::char_traits<char16_t>::not_eof(u'a') == u'a'); 24 assert(std::char_traits<char16_t>::not_eof(u'A') == u'A'); 26 assert(std::char_traits<char16_t>::not_eof(0) == 0); 27 assert(std::char_traits<char16_t>::not_eof(std::char_traits<char16_t>::eof()) != 28 std::char_traits<char16_t>::eof());
|
eof.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 std::char_traits<char16_t>::int_type i = std::char_traits<char16_t>::eof();
|
compare.pass.cpp | 12 // template<> struct char_traits<char16_t> 23 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); 24 assert(std::char_traits<char16_t>::compare(NULL, NULL, 0) == 0); 26 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); 27 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); 28 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); 30 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); 31 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); 32 assert(std::char_traits<char16_t>::compare(u"12", u"22", 2) < 0); 33 assert(std::char_traits<char16_t>::compare(u"13", u"12", 2) > 0) [all...] |
eq_int_type.pass.cpp | 12 // template<> struct char_traits<char16_t> 23 assert( std::char_traits<char16_t>::eq_int_type(u'a', u'a')); 24 assert(!std::char_traits<char16_t>::eq_int_type(u'a', u'A')); 25 assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A')); 27 assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), 28 std::char_traits<char16_t>::eof()));
|
length.pass.cpp | 12 // template<> struct char_traits<char16_t> 23 assert(std::char_traits<char16_t>::length(u"") == 0); 24 assert(std::char_traits<char16_t>::length(u"a") == 1); 25 assert(std::char_traits<char16_t>::length(u"aa") == 2); 26 assert(std::char_traits<char16_t>::length(u"aaa") == 3); 27 assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
|
types.pass.cpp | 12 // template<> struct char_traits<char16_t> 14 // typedef char16_t char_type; 27 static_assert((std::is_same<std::char_traits<char16_t>::char_type, char16_t>::value), ""); 28 static_assert((std::is_same<std::char_traits<char16_t>::int_type, std::uint_least16_t>::value), ""); 29 static_assert((std::is_same<std::char_traits<char16_t>::off_type, std::streamoff>::value), ""); 30 static_assert((std::is_same<std::char_traits<char16_t>::pos_type, std::u16streampos>::value), ""); 31 static_assert((std::is_same<std::char_traits<char16_t>::state_type, std::mbstate_t>::value), "");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
assign3.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 char16_t s2[3] = {0}; 24 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); 25 assert(s2[0] == char16_t(5)); 26 assert(s2[1] == char16_t(5)); 27 assert(s2[2] == char16_t(5));
|
find.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); 24 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); 25 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); 26 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0) [all...] |
copy.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 char16_t s2[3] = {0}; 24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); 25 assert(s2[0] == char16_t(1)); 26 assert(s2[1] == char16_t(2)); 27 assert(s2[2] == char16_t(3));
|
move.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 char16_t s1[] = {1, 2, 3}; 23 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); 24 assert(s1[0] == char16_t(2)); 25 assert(s1[1] == char16_t(3)); 26 assert(s1[2] == char16_t(3)); 27 s1[2] = char16_t(0); 28 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); 29 assert(s1[0] == char16_t(2)); 30 assert(s1[1] == char16_t(2)) [all...] |
eq_int_type.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 assert( std::char_traits<char16_t>::eq_int_type(u'a', u'a')); 23 assert(!std::char_traits<char16_t>::eq_int_type(u'a', u'A')); 24 assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A')); 25 assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), 26 std::char_traits<char16_t>::eof()));
|
not_eof.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 assert(std::char_traits<char16_t>::not_eof(u'a') == u'a'); 23 assert(std::char_traits<char16_t>::not_eof(u'A') == u'A'); 24 assert(std::char_traits<char16_t>::not_eof(0) == 0); 25 assert(std::char_traits<char16_t>::not_eof(std::char_traits<char16_t>::eof()) != 26 std::char_traits<char16_t>::eof());
|
eof.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 std::char_traits<char16_t>::int_type i = std::char_traits<char16_t>::eof();
|
compare.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); 24 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); 25 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); 26 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); 28 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); 29 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); 30 assert(std::char_traits<char16_t>::compare(u"12", u"22", 2) < 0); 31 assert(std::char_traits<char16_t>::compare(u"13", u"12", 2) > 0); 32 assert(std::char_traits<char16_t>::compare(u"22", u"12", 2) > 0) [all...] |
length.pass.cpp | 12 // template<> struct char_traits<char16_t> 22 assert(std::char_traits<char16_t>::length(u"") == 0); 23 assert(std::char_traits<char16_t>::length(u"a") == 1); 24 assert(std::char_traits<char16_t>::length(u"aa") == 2); 25 assert(std::char_traits<char16_t>::length(u"aaa") == 3); 26 assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
|
/system/core/include/cutils/ |
jstring.h | 28 typedef uint16_t char16_t; typedef 30 // otherwise char16_t is a keyword with the right semantics 32 extern char * strndup16to8 (const char16_t* s, size_t n); 33 extern size_t strnlen16to8 (const char16_t* s, size_t n); 34 extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n); 36 extern char16_t * strdup8to16 (const char* s, size_t *out_len); 38 extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len); 39 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length [all...] |
/system/core/include/utils/ |
Unicode.h | 25 // Standard string functions on char16_t strings. 26 int strcmp16(const char16_t *, const char16_t *); 27 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n); 28 size_t strlen16(const char16_t *); 29 size_t strnlen16(const char16_t *, size_t); 30 char16_t *strcpy16(char16_t *, const char16_t *); [all...] |
/external/clang/test/Lexer/ |
unicode-strings.c | 7 typedef __CHAR16_TYPE__ char16_t; typedef 10 // expected-warning@17 {{'char16_t' type specifier is incompatible with C++98}} 12 // expected-warning@20 {{'char16_t' type specifier is incompatible with C++98}} 17 const char16_t *b = u"abcd"; // expected-warning {{unicode literals are incompatible with}} 20 char16_t d = u'a'; // expected-warning {{unicode literals are incompatible with}}
|
char-literal.cpp | 6 typedef __CHAR16_TYPE__ char16_t; typedef 21 char16_t g = u'ab'; // expected-error {{Unicode character literals may not contain multiple characters}} 22 char16_t h = u'\U0010FFFD'; // expected-error {{character too large for enclosing character literal type}} 33 char16_t o = '?'; // expected-error {{character too large for enclosing character literal type}} 35 char16_t p[2] = u"\U0000FFFF"; 36 char16_t q[2] = u"\U00010000";
|
/external/clang/test/SemaCXX/ |
overloaded-builtin-operators-0x.cpp | 10 void test_char16t(X<char16_t> x) { 11 bool b = x == char16_t();
|