Home
last modified time | relevance | path

Searched refs:char32_t (Results 1 – 25 of 498) sorted by relevance

12345678910>>...20

/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dfind.pass.cpp25 constexpr const char32_t *p = U"123"; in test_constexpr()
26 return std::char_traits<char32_t>::find(p, 3, U'1') == p in test_constexpr()
27 && std::char_traits<char32_t>::find(p, 3, U'2') == p + 1 in test_constexpr()
28 && std::char_traits<char32_t>::find(p, 3, U'3') == p + 2 in test_constexpr()
29 && std::char_traits<char32_t>::find(p, 3, U'4') == nullptr; in test_constexpr()
36 char32_t s1[] = {1, 2, 3}; in main()
37 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); in main()
38 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); in main()
39 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); in main()
40 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0); in main()
[all …]
Dcompare.pass.cpp25 return std::char_traits<char32_t>::compare(U"123", U"223", 3) < 0 in test_constexpr()
26 && std::char_traits<char32_t>::compare(U"223", U"123", 3) > 0 in test_constexpr()
27 && std::char_traits<char32_t>::compare(U"123", U"123", 3) == 0; in test_constexpr()
35 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); in main()
36 assert(std::char_traits<char32_t>::compare(NULL, NULL, 0) == 0); in main()
38 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); in main()
39 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); in main()
40 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); in main()
42 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); in main()
43 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); in main()
[all …]
Dmove.pass.cpp22 char32_t s1[] = {1, 2, 3}; in main()
23 assert(std::char_traits<char32_t>::move(s1, s1+1, 2) == s1); in main()
24 assert(s1[0] == char32_t(2)); in main()
25 assert(s1[1] == char32_t(3)); in main()
26 assert(s1[2] == char32_t(3)); in main()
27 s1[2] = char32_t(0); in main()
28 assert(std::char_traits<char32_t>::move(s1+1, s1, 2) == s1+1); in main()
29 assert(s1[0] == char32_t(2)); in main()
30 assert(s1[1] == char32_t(2)); in main()
31 assert(s1[2] == char32_t(3)); in main()
[all …]
Dassign3.pass.cpp22 char32_t s2[3] = {0}; in main()
23 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); in main()
24 assert(s2[0] == char32_t(5)); in main()
25 assert(s2[1] == char32_t(5)); in main()
26 assert(s2[2] == char32_t(5)); in main()
27 assert(std::char_traits<char32_t>::assign(NULL, 0, char32_t(5)) == NULL); in main()
Dcopy.pass.cpp22 char32_t s1[] = {1, 2, 3}; in main()
23 char32_t s2[3] = {0}; in main()
24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2); in main()
25 assert(s2[0] == char32_t(1)); in main()
26 assert(s2[1] == char32_t(2)); in main()
27 assert(s2[2] == char32_t(3)); in main()
28 assert(std::char_traits<char32_t>::copy(NULL, s1, 0) == NULL); in main()
29 assert(std::char_traits<char32_t>::copy(s1, NULL, 0) == s1); in main()
Deq_int_type.pass.cpp25 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); in main()
26 assert(!std::char_traits<char32_t>::eq_int_type(U'a', U'A')); in main()
27 assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A')); in main()
29 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), in main()
30 std::char_traits<char32_t>::eof())); in main()
Dlength.pass.cpp25 return std::char_traits<char32_t>::length(U"") == 0 in test_constexpr()
26 && std::char_traits<char32_t>::length(U"abcd") == 4; in test_constexpr()
34 assert(std::char_traits<char32_t>::length(U"") == 0); in main()
35 assert(std::char_traits<char32_t>::length(U"a") == 1); in main()
36 assert(std::char_traits<char32_t>::length(U"aa") == 2); in main()
37 assert(std::char_traits<char32_t>::length(U"aaa") == 3); in main()
38 assert(std::char_traits<char32_t>::length(U"aaaa") == 4); in main()
Dnot_eof.pass.cpp25 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); in main()
26 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); in main()
28 assert(std::char_traits<char32_t>::not_eof(0) == 0); in main()
29 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != in main()
30 std::char_traits<char32_t>::eof()); in main()
Dtypes.pass.cpp27 static_assert((std::is_same<std::char_traits<char32_t>::char_type, char32_t>::value), ""); in main()
28 …static_assert((std::is_same<std::char_traits<char32_t>::int_type, std::uint_least32_t>::value), ""… in main()
29 static_assert((std::is_same<std::char_traits<char32_t>::off_type, std::streamoff>::value), ""); in main()
30 … static_assert((std::is_same<std::char_traits<char32_t>::pos_type, std::u32streampos>::value), ""); in main()
31 … static_assert((std::is_same<std::char_traits<char32_t>::state_type, std::mbstate_t>::value), ""); in main()
/external/llvm-project/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dfind.pass.cpp24 constexpr const char32_t *p = U"123"; in test_constexpr()
25 return std::char_traits<char32_t>::find(p, 3, U'1') == p in test_constexpr()
26 && std::char_traits<char32_t>::find(p, 3, U'2') == p + 1 in test_constexpr()
27 && std::char_traits<char32_t>::find(p, 3, U'3') == p + 2 in test_constexpr()
28 && std::char_traits<char32_t>::find(p, 3, U'4') == nullptr; in test_constexpr()
35 char32_t s1[] = {1, 2, 3}; in main()
36 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); in main()
37 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); in main()
38 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); in main()
39 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0); in main()
[all …]
Dcompare.pass.cpp24 return std::char_traits<char32_t>::compare(U"123", U"223", 3) < 0 in test_constexpr()
25 && std::char_traits<char32_t>::compare(U"223", U"123", 3) > 0 in test_constexpr()
26 && std::char_traits<char32_t>::compare(U"123", U"123", 3) == 0; in test_constexpr()
34 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); in main()
35 assert(std::char_traits<char32_t>::compare(NULL, NULL, 0) == 0); in main()
37 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); in main()
38 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); in main()
39 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); in main()
41 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); in main()
42 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); in main()
[all …]
Dmove.pass.cpp23 char32_t s1[] = {1, 2, 3}; in test()
24 assert(std::char_traits<char32_t>::move(s1, s1+1, 2) == s1); in test()
25 assert(s1[0] == char32_t(2)); in test()
26 assert(s1[1] == char32_t(3)); in test()
27 assert(s1[2] == char32_t(3)); in test()
28 s1[2] = char32_t(0); in test()
29 assert(std::char_traits<char32_t>::move(s1+1, s1, 2) == s1+1); in test()
30 assert(s1[0] == char32_t(2)); in test()
31 assert(s1[1] == char32_t(2)); in test()
32 assert(s1[2] == char32_t(3)); in test()
[all …]
Dassign3.pass.cpp23 char32_t s2[3] = {0}; in test()
24 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); in test()
25 assert(s2[0] == char32_t(5)); in test()
26 assert(s2[1] == char32_t(5)); in test()
27 assert(s2[2] == char32_t(5)); in test()
28 assert(std::char_traits<char32_t>::assign(NULL, 0, char32_t(5)) == NULL); in test()
Dcopy.pass.cpp23 char32_t s1[] = {1, 2, 3}; in test()
24 char32_t s2[3] = {0}; in test()
25 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2); in test()
26 assert(s2[0] == char32_t(1)); in test()
27 assert(s2[1] == char32_t(2)); in test()
28 assert(s2[2] == char32_t(3)); in test()
29 assert(std::char_traits<char32_t>::copy(NULL, s1, 0) == NULL); in test()
30 assert(std::char_traits<char32_t>::copy(s1, NULL, 0) == s1); in test()
Deq_int_type.pass.cpp24 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); in main()
25 assert(!std::char_traits<char32_t>::eq_int_type(U'a', U'A')); in main()
26 assert(!std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), U'A')); in main()
28 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), in main()
29 std::char_traits<char32_t>::eof())); in main()
Dlength.pass.cpp24 return std::char_traits<char32_t>::length(U"") == 0 in test_constexpr()
25 && std::char_traits<char32_t>::length(U"abcd") == 4; in test_constexpr()
33 assert(std::char_traits<char32_t>::length(U"") == 0); in main()
34 assert(std::char_traits<char32_t>::length(U"a") == 1); in main()
35 assert(std::char_traits<char32_t>::length(U"aa") == 2); in main()
36 assert(std::char_traits<char32_t>::length(U"aaa") == 3); in main()
37 assert(std::char_traits<char32_t>::length(U"aaaa") == 4); in main()
Dnot_eof.pass.cpp24 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); in main()
25 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); in main()
27 assert(std::char_traits<char32_t>::not_eof(0) == 0); in main()
28 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != in main()
29 std::char_traits<char32_t>::eof()); in main()
Dtypes.pass.cpp28 static_assert((std::is_same<std::char_traits<char32_t>::char_type, char32_t>::value), ""); in main()
29 …static_assert((std::is_same<std::char_traits<char32_t>::int_type, std::uint_least32_t>::value), ""… in main()
30 static_assert((std::is_same<std::char_traits<char32_t>::off_type, std::streamoff>::value), ""); in main()
31 … static_assert((std::is_same<std::char_traits<char32_t>::pos_type, std::u32streampos>::value), ""); in main()
32 … static_assert((std::is_same<std::char_traits<char32_t>::state_type, std::mbstate_t>::value), ""); in main()
/external/llvm-project/clang/test/Parser/
Dchar-literal-printing.c52 char32_t test39(void) { return U'\\'; } in test39()
53 char32_t test40(void) { return U'\''; } in test40()
54 char32_t test41(void) { return U'\a'; } in test41()
55 char32_t test42(void) { return U'\b'; } in test42()
56 char32_t test43(void) { return U'\e'; } in test43()
57 char32_t test44(void) { return U'\f'; } in test44()
58 char32_t test45(void) { return U'\n'; } in test45()
59 char32_t test46(void) { return U'\r'; } in test46()
60 char32_t test47(void) { return U'\t'; } in test47()
61 char32_t test48(void) { return U'\v'; } in test48()
[all …]
/external/clang/test/Parser/
Dchar-literal-printing.c52 char32_t test39(void) { return U'\\'; } in test39()
53 char32_t test40(void) { return U'\''; } in test40()
54 char32_t test41(void) { return U'\a'; } in test41()
55 char32_t test42(void) { return U'\b'; } in test42()
56 char32_t test43(void) { return U'\e'; } in test43()
57 char32_t test44(void) { return U'\f'; } in test44()
58 char32_t test45(void) { return U'\n'; } in test45()
59 char32_t test46(void) { return U'\r'; } in test46()
60 char32_t test47(void) { return U'\t'; } in test47()
61 char32_t test48(void) { return U'\v'; } in test48()
[all …]
/external/llvm-project/clang/test/Sema/
Dstring-init.c6 typedef unsigned int char32_t; typedef
27char32_t d1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}} in f()
28char32_t d2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string litera… in f()
29char32_t d3[] = u"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
30 char32_t d4[] = U"a"; // No error. in f()
31char32_t d5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
50char32_t d[] = 1; // expected-error{{array initializer must be an initializer list or wide string … in g()
/external/clang/test/Sema/
Dstring-init.c6 typedef unsigned int char32_t; typedef
27char32_t d1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}} in f()
28char32_t d2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string litera… in f()
29char32_t d3[] = u"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
30 char32_t d4[] = U"a"; // No error. in f()
31char32_t d5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
50char32_t d[] = 1; // expected-error{{array initializer must be an initializer list or wide string … in g()
/external/clang/test/Lexer/
Dstring_concat.cpp7 typedef __CHAR32_TYPE__ char32_t;
30 …const char32_t* m = U"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of … in f()
31 …const char32_t* n = U"abc" u"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
32 …const char32_t* o = U"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
34 …const char32_t* p = U"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation … in f()
35 …const char32_t* q = U"abc" uR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
36 …const char32_t* r = U"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
/external/llvm-project/clang/test/Lexer/
Dstring_concat.cpp7 typedef __CHAR32_TYPE__ char32_t;
30 …const char32_t* m = U"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of … in f()
31 …const char32_t* n = U"abc" u"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
32 …const char32_t* o = U"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of s… in f()
34 …const char32_t* p = U"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation … in f()
35 …const char32_t* q = U"abc" uR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
36 …const char32_t* r = U"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation o… in f()
/external/llvm-project/clang/test/CodeGen/
Dchar-literal.c46 char32_t Ua = U'a'; in main()
56 char32_t Ua1 = U'µ'; in main()
58 char32_t Ua2 = U'闗'; in main()
60 char32_t Ua3 = U'��'; in main()
74 char32_t Uc = U'\uF00B'; in main()
83 char32_t Ud = U'\U0010F00B'; in main()

12345678910>>...20