Home
last modified time | relevance | path

Searched refs:char16_t (Results 1 – 25 of 178) sorted by relevance

12345678

/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 …]
Dfind.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main()
23 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()
Dmove.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main()
23 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); in main()
24 assert(s1[0] == char16_t(2)); in main()
25 assert(s1[1] == char16_t(3)); in main()
26 assert(s1[2] == char16_t(3)); in main()
27 s1[2] = char16_t(0); in main()
28 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); in main()
29 assert(s1[0] == char16_t(2)); in main()
30 assert(s1[1] == char16_t(2)); in main()
31 assert(s1[2] == char16_t(3)); in main()
[all …]
Dassign3.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main()
23 char16_t s2[3] = {0}; in main()
24 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); in main()
25 assert(s2[0] == char16_t(5)); in main()
26 assert(s2[1] == char16_t(5)); in main()
27 assert(s2[2] == char16_t(5)); in main()
28 assert(std::char_traits<char16_t>::assign(NULL, 0, char16_t(5)) == NULL); in main()
Dcopy.pass.cpp22 char16_t s1[] = {1, 2, 3}; in main()
23 char16_t s2[3] = {0}; in main()
24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); in main()
25 assert(s2[0] == char16_t(1)); in main()
26 assert(s2[1] == char16_t(2)); in main()
27 assert(s2[2] == char16_t(3)); in main()
28 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL); in main()
29 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1); in main()
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()
Dtypes.pass.cpp27 static_assert((std::is_same<std::char_traits<char16_t>::char_type, char16_t>::value), ""); in main()
28 …static_assert((std::is_same<std::char_traits<char16_t>::int_type, std::uint_least16_t>::value), ""… in main()
29 static_assert((std::is_same<std::char_traits<char16_t>::off_type, std::streamoff>::value), ""); in main()
30 … static_assert((std::is_same<std::char_traits<char16_t>::pos_type, std::u16streampos>::value), ""); in main()
31 … static_assert((std::is_same<std::char_traits<char16_t>::state_type, std::mbstate_t>::value), ""); in main()
Dlength.pass.cpp23 assert(std::char_traits<char16_t>::length(u"") == 0); in main()
24 assert(std::char_traits<char16_t>::length(u"a") == 1); in main()
25 assert(std::char_traits<char16_t>::length(u"aa") == 2); in main()
26 assert(std::char_traits<char16_t>::length(u"aaa") == 3); in main()
27 assert(std::char_traits<char16_t>::length(u"aaaa") == 4); in main()
Dlt.pass.cpp23 char16_t c = u'\0'; in main()
24 assert(!std::char_traits<char16_t>::lt(u'a', u'a')); in main()
25 assert( std::char_traits<char16_t>::lt(u'A', u'a')); in main()
Deq.pass.cpp23 char16_t c = u'\0'; in main()
24 assert(std::char_traits<char16_t>::eq(u'a', u'a')); in main()
25 assert(!std::char_traits<char16_t>::eq(u'a', u'A')); in main()
Dto_char_type.pass.cpp23 assert(std::char_traits<char16_t>::to_char_type(u'a') == u'a'); in main()
24 assert(std::char_traits<char16_t>::to_char_type(u'A') == u'A'); in main()
26 assert(std::char_traits<char16_t>::to_char_type(0) == 0); in main()
Dto_int_type.pass.cpp23 assert(std::char_traits<char16_t>::to_int_type(u'a') == u'a'); in main()
24 assert(std::char_traits<char16_t>::to_int_type(u'A') == u'A'); in main()
26 assert(std::char_traits<char16_t>::to_int_type(0) == 0); in main()
/external/clang/test/Parser/
Dchar-literal-printing.c36 char16_t test26(void) { return u'\\'; } in test26()
37 char16_t test27(void) { return u'\''; } in test27()
38 char16_t test28(void) { return u'\a'; } in test28()
39 char16_t test29(void) { return u'\b'; } in test29()
40 char16_t test30(void) { return u'\e'; } in test30()
41 char16_t test31(void) { return u'\f'; } in test31()
42 char16_t test32(void) { return u'\n'; } in test32()
43 char16_t test33(void) { return u'\r'; } in test33()
44 char16_t test34(void) { return u'\t'; } in test34()
45 char16_t test35(void) { return u'\v'; } in test35()
[all …]
/external/clang/test/Sema/
Dstring-init.c5 typedef unsigned short char16_t; typedef
21char16_t c1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}} in f()
22char16_t c2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string litera… in f()
23 char16_t c3[] = u"a"; // No error. in f()
24char16_t c4[] = U"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
25char16_t c5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
49char16_t c[] = 1; // expected-error{{array initializer must be an initializer list or wide string … in g()
/external/clang/test/Lexer/
Dstring_concat.cpp6 typedef __CHAR16_TYPE__ char16_t;
21 …const char16_t* g = u"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of … in f()
22 …const char16_t* h = u"abc" U"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
23 …const char16_t* i = u"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
25 …const char16_t* j = u"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation … in f()
26 …const char16_t* k = u"abc" UR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
27 …const char16_t* l = u"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
Dchar-literal.cpp6 typedef __CHAR16_TYPE__ char16_t;
21 char16_t g = u'ab'; // expected-error {{Unicode character literals may not contain multiple charact…
22 char16_t h = u'\U0010FFFD'; // expected-error {{character too large for enclosing character literal…
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";
Dstring-literal-encoding.c10 char16_t const *b = u"�����"; // expected-error {{illegal character encoding in string literal}} in f()
13char16_t const *e = uR"(�����)"; // expected-error {{illegal character encoding in string literal}} in f()
24char16_t const *b = u"foo �����"; // expected-error {{illegal character encoding in string literal… in g()
27char16_t const *e = uR"(foo �����)"; // expected-error {{illegal character encoding in string lite… in g()
Dunicode-strings.c7 typedef __CHAR16_TYPE__ char16_t; typedef
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}}
/external/clang/test/SemaCXX/
Dstring-init.cpp16char16_t c1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}} in f()
17char16_t c2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string litera… in f()
18 char16_t c3[] = u"a"; // No error. in f()
19char16_t c4[] = U"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
20char16_t c5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
38char16_t c[] = 1; // expected-error{{array initializer must be an initializer list or wide string … in g()
/external/clang/test/CodeGen/
Dstring-literal.c10 typedef __CHAR16_TYPE__ char16_t; typedef
56 const char16_t *e = u"EF"; in main()
61 const char16_t *f = u"\u1120\u0220\U00102030"; in main()
66 const char16_t *p = u"\u1120\u0320" "\U00102030"; in main()
80 const char16_t *j = uR"foo(GH)foo"; in main()
112 const char16_t *t = uR\ in main()
Dchar-literal.c43 char16_t ua = u'a'; in main()
49 char16_t ua1 = u'З'; in main()
51 char16_t ua2 = u'ヺ'; in main()
53 char16_t ua3 = u'闗'; in main()
71 char16_t uc = u'\uF00B'; in main()
/external/clang/test/CodeGenCXX/
Dcxx11-exception-spec.cpp26 template void f<char16_t>();
28 template void f<char16_t[2]>();
32 template void S<char16_t>::f();
34 template void S<char16_t[2]>::f();
/external/clang/test/CXX/over/over.oper/over.literal/
Dp3.cpp13 char operator "" _a(char16_t);
17 char operator "" _a(const char16_t *, size_t);
37 char operator "" _a(char16_t *, size_t); // expected-error {{parameter}}
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
Dconst_data_members.pass.cpp103 TEST_NUMERIC_LIMITS(char16_t) in main()
104 TEST_NUMERIC_LIMITS(const char16_t) in main()
105 TEST_NUMERIC_LIMITS(volatile char16_t) in main()
106 TEST_NUMERIC_LIMITS(const volatile char16_t) in main()

12345678