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

1 2 3 4 5 6 7 8 910

  /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');
eq.pass.cpp 12 // template<> struct char_traits<char32_t>
22 char32_t c = U'\0';
23 assert(std::char_traits<char32_t>::eq(U'a', U'a'));
24 assert(!std::char_traits<char32_t>::eq(U'a', U'A'));
lt.pass.cpp 12 // template<> struct char_traits<char32_t>
22 char32_t c = U'\0';
23 assert(!std::char_traits<char32_t>::lt(U'a', U'a'));
24 assert( std::char_traits<char32_t>::lt(U'A', U'a'));
to_char_type.pass.cpp 12 // template<> struct char_traits<char32_t>
22 assert(std::char_traits<char32_t>::to_char_type(U'a') == U'a');
23 assert(std::char_traits<char32_t>::to_char_type(U'A') == U'A');
24 assert(std::char_traits<char32_t>::to_char_type(0) == 0);
to_int_type.pass.cpp 12 // template<> struct char_traits<char32_t>
22 assert(std::char_traits<char32_t>::to_int_type(U'a') == U'a');
23 assert(std::char_traits<char32_t>::to_int_type(U'A') == U'A');
24 assert(std::char_traits<char32_t>::to_int_type(0) == 0);
  /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}}
string-literal-encoding.c 11 char32_t const *c = U"?????"; // expected-error {{illegal character encoding in string literal}}
14 char32_t const *f = UR"(?????)"; // expected-error {{illegal character encoding in string literal}}
25 char32_t const *c = U"foo ?????"; // expected-error {{illegal character encoding in string literal}}
28 char32_t const *f = UR"(foo ?????)"; // expected-error {{illegal character encoding in string literal}}
  /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/Sema/
string-init.c 6 typedef unsigned int char32_t; typedef
27 char32_t d1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}}
28 char32_t d2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string literal}}
29 char32_t d3[] = u"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
30 char32_t d4[] = U"a"; // No error.
31 char32_t d5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
50 char32_t d[] = 1; // expected-error{{array initializer must be an initializer list or wide string literal}}
  /external/clang/test/CodeGen/
char-literal.c 46 char32_t Ua = U'a';
56 char32_t Ua1 = U'µ';
58 char32_t Ua2 = U'?';
60 char32_t Ua3 = U'?';
74 char32_t Uc = U'\uF00B';
83 char32_t Ud = U'\U0010F00B';
  /external/clang/test/SemaCXX/
string-init.cpp 22 char32_t d1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}}
23 char32_t d2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string literal}}
24 char32_t d3[] = u"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
25 char32_t d4[] = U"a"; // No error.
26 char32_t d5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide string literal}}
39 char32_t d[] = 1; // expected-error{{array initializer must be an initializer list or wide string literal}}
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/FixIt/
fixit-vexing-parse-cxx0x.cpp 20 char32_t u32(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an initializer}}
  /external/clang/test/Misc/
ast-dump-wchar.cpp 9 char32_t c32[] = U"test\0\\\"\t\a\b\234\u1234\U0010ffff"; // \
  /external/clang/test/CXX/lex/lex.charset/
p2-cxx11.cpp 30 char32_t w10fffe = U'\U0010fffe';
31 char32_t w10ffff = U'\U0010ffff';
32 char32_t w110000 = U'\U00110000'; // expected-error {{invalid universal character}}
38 const char32_t *p5 = U"\u0000\u0012\u004e\u007f\u0080\u009f\u00a0\ud799\ue000";
42 const char32_t *p9 = U"foo \U0010ffff bar"; // ok

Completed in 704 milliseconds

1 2 3 4 5 6 7 8 910