HomeSort by relevance Sort by last modified time
    Searched refs:char16_t (Results 1 - 25 of 285) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGenCXX/
debug-info-char16.cpp 4 char16_t char_a = u'h';
6 // CHECK: !{{.*}} = {{.*}} ; [ DW_TAG_base_type ] [char16_t]
  /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);
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), "");
assign2.pass.cpp 12 // template<> struct char_traits<char16_t>
22 char16_t c = u'\0';
23 std::char_traits<char16_t>::assign(c, u'a');
eq.pass.cpp 12 // template<> struct char_traits<char16_t>
22 char16_t c = u'\0';
23 assert(std::char_traits<char16_t>::eq(u'a', u'a'));
24 assert(!std::char_traits<char16_t>::eq(u'a', u'A'));
lt.pass.cpp 12 // template<> struct char_traits<char16_t>
22 char16_t c = u'\0';
23 assert(!std::char_traits<char16_t>::lt(u'a', u'a'));
24 assert( std::char_traits<char16_t>::lt(u'A', u'a'));
to_char_type.pass.cpp 12 // template<> struct char_traits<char16_t>
22 assert(std::char_traits<char16_t>::to_char_type(u'a') == u'a');
23 assert(std::char_traits<char16_t>::to_char_type(u'A') == u'A');
24 assert(std::char_traits<char16_t>::to_char_type(0) == 0);
to_int_type.pass.cpp 12 // template<> struct char_traits<char16_t>
22 assert(std::char_traits<char16_t>::to_int_type(u'a') == u'a');
23 assert(std::char_traits<char16_t>::to_int_type(u'A') == u'A');
24 assert(std::char_traits<char16_t>::to_int_type(0) == 0);
  /system/core/include/cutils/
jstring.h 27 typedef uint16_t char16_t; typedef
29 extern char * strndup16to8 (const char16_t* s, size_t n);
30 extern size_t strnlen16to8 (const char16_t* s, size_t n);
31 extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n);
33 extern char16_t * strdup8to16 (const char* s, size_t *out_len);
35 extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len);
36 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,
  /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";
  /system/core/include/utils/
Unicode.h 26 typedef uint16_t char16_t; typedef
28 // Standard string functions on char16_t strings.
29 int strcmp16(const char16_t *, const char16_t *);
30 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n);
31 size_t strlen16(const char16_t *);
32 size_t strnlen16(const char16_t *, size_t);
33 char16_t *strcpy16(char16_t *, const char16_t *)
    [all...]
  /external/clang/test/SemaCXX/
overloaded-builtin-operators-0x.cpp 10 void test_char16t(X<char16_t> x) {
11 bool b = x == char16_t();
string-init.cpp 16 char16_t c1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}}
17 char16_t c2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string literal}}
18 char16_t c3[] = u"a"; // No error.
19 char16_t c4[] = U"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
20 char16_t c5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
38 char16_t c[] = 1; // expected-error{{array initializer must be an initializer list or wide string literal}}
  /external/clang/test/Sema/
string-init.c 5 typedef unsigned short char16_t; typedef
21 char16_t c1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}}
22 char16_t c2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string literal}}
23 char16_t c3[] = u"a"; // No error.
24 char16_t c4[] = U"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
25 char16_t c5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
49 char16_t c[] = 1; // expected-error{{array initializer must be an initializer list or wide string literal}}
  /system/core/libutils/
String16.cpp 33 static char16_t* gEmptyString = NULL;
35 static inline char16_t* getEmptyString()
43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t));
44 char16_t* str = (char16_t*)buf->data();
59 static char16_t* allocFromUTF8(const char* u8str, size_t u8len)
72 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1));
75 char16_t* u16str = (char16_t*)buf->data();
103 char16_t* data = static_cast<char16_t*>
    [all...]
  /external/clang/test/FixIt/
fixit-vexing-parse-cxx0x.cpp 17 char16_t u16(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}

Completed in 209 milliseconds

1 2 3 4 5 6 7 8 91011>>