Home
last modified time | relevance | path

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

1234567

/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
Dcompare.pass.cpp23 assert(std::char_traits<char32_t>::compare(U"", U"", 0) == 0); in main()
24 assert(std::char_traits<char32_t>::compare(NULL, NULL, 0) == 0); in main()
26 assert(std::char_traits<char32_t>::compare(U"1", U"1", 1) == 0); in main()
27 assert(std::char_traits<char32_t>::compare(U"1", U"2", 1) < 0); in main()
28 assert(std::char_traits<char32_t>::compare(U"2", U"1", 1) > 0); in main()
30 assert(std::char_traits<char32_t>::compare(U"12", U"12", 2) == 0); in main()
31 assert(std::char_traits<char32_t>::compare(U"12", U"13", 2) < 0); in main()
32 assert(std::char_traits<char32_t>::compare(U"12", U"22", 2) < 0); in main()
33 assert(std::char_traits<char32_t>::compare(U"13", U"12", 2) > 0); in main()
34 assert(std::char_traits<char32_t>::compare(U"22", U"12", 2) > 0); in main()
[all …]
Dfind.pass.cpp22 char32_t s1[] = {1, 2, 3}; in main()
23 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(1)) == s1); in main()
24 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(2)) == s1+1); in main()
25 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(3)) == s1+2); in main()
26 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(4)) == 0); in main()
27 assert(std::char_traits<char32_t>::find(s1, 3, char32_t(0)) == 0); in main()
28 assert(std::char_traits<char32_t>::find(NULL, 0, char32_t(0)) == 0); in main()
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 s1[] = {1, 2, 3}; in main()
23 char32_t s2[3] = {0}; in main()
24 assert(std::char_traits<char32_t>::assign(s2, 3, char32_t(5)) == s2); in main()
25 assert(s2[0] == char32_t(5)); in main()
26 assert(s2[1] == char32_t(5)); in main()
27 assert(s2[2] == char32_t(5)); in main()
28 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.cpp23 assert( std::char_traits<char32_t>::eq_int_type(U'a', U'a')); in main()
24 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(std::char_traits<char32_t>::eof(), U'A')); in main()
27 assert( std::char_traits<char32_t>::eq_int_type(std::char_traits<char32_t>::eof(), in main()
28 std::char_traits<char32_t>::eof())); in main()
Dnot_eof.pass.cpp23 assert(std::char_traits<char32_t>::not_eof(U'a') == U'a'); in main()
24 assert(std::char_traits<char32_t>::not_eof(U'A') == U'A'); in main()
26 assert(std::char_traits<char32_t>::not_eof(0) == 0); in main()
27 assert(std::char_traits<char32_t>::not_eof(std::char_traits<char32_t>::eof()) != in main()
28 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()
Dlength.pass.cpp23 assert(std::char_traits<char32_t>::length(U"") == 0); in main()
24 assert(std::char_traits<char32_t>::length(U"a") == 1); in main()
25 assert(std::char_traits<char32_t>::length(U"aa") == 2); in main()
26 assert(std::char_traits<char32_t>::length(U"aaa") == 3); in main()
27 assert(std::char_traits<char32_t>::length(U"aaaa") == 4); in main()
Dlt.pass.cpp23 char32_t c = U'\0'; in main()
24 assert(!std::char_traits<char32_t>::lt(U'a', U'a')); in main()
25 assert( std::char_traits<char32_t>::lt(U'A', U'a')); in main()
Deq.pass.cpp23 char32_t c = U'\0'; in main()
24 assert(std::char_traits<char32_t>::eq(U'a', U'a')); in main()
25 assert(!std::char_traits<char32_t>::eq(U'a', U'A')); in main()
Dto_int_type.pass.cpp23 assert(std::char_traits<char32_t>::to_int_type(U'a') == U'a'); in main()
24 assert(std::char_traits<char32_t>::to_int_type(U'A') == U'A'); in main()
26 assert(std::char_traits<char32_t>::to_int_type(0) == 0); in main()
Dto_char_type.pass.cpp23 assert(std::char_traits<char32_t>::to_char_type(U'a') == U'a'); in main()
24 assert(std::char_traits<char32_t>::to_char_type(U'A') == U'A'); in main()
26 assert(std::char_traits<char32_t>::to_char_type(0) == 0); in main()
/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/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()
Dstring-literal-encoding.c11 char32_t const *c = U"�����"; // expected-error {{illegal character encoding in string literal}} in f()
14char32_t const *f = UR"(�����)"; // expected-error {{illegal character encoding in string literal}} in f()
25char32_t const *c = U"foo �����"; // expected-error {{illegal character encoding in string literal… in g()
28char32_t const *f = UR"(foo �����)"; // expected-error {{illegal character encoding in string lite… in g()
Dunicode-strings.c8 typedef __CHAR32_TYPE__ char32_t; typedef
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}}
Dchar-literal.cpp7 typedef __CHAR32_TYPE__ char32_t;
27 char32_t k = U'\U0010FFFD';
32 char32_t n = U'ab'; // expected-error {{Unicode character literals may not contain multiple charact…
/external/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()
Dstring-literal.c11 typedef __CHAR32_TYPE__ char32_t; typedef
44 const char32_t *c = U"CD"; in main()
48 const char32_t *d = U"\u1235\U0010F00C"; in main()
52 const char32_t *o = "\u1235" U"\U0010F00B"; in main()
83 const char32_t *k = UR"bar(IJ)bar"; in main()
118 const char32_t *u = UR\ in main()
/external/clang/test/SemaCXX/
Dstring-init.cpp22char32_t d1[] = "a"; // expected-error{{initializing wide char array with non-wide string literal}} in f()
23char32_t d2[] = u8"a"; // expected-error{{initializing wide char array with non-wide string litera… in f()
24char32_t d3[] = u"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
25 char32_t d4[] = U"a"; // No error. in f()
26char32_t d5[] = L"a"; // expected-error{{initializing wide char array with incompatible wide strin… in f()
39char32_t d[] = 1; // expected-error{{array initializer must be an initializer list or wide string … in g()
/external/clang/test/CXX/lex/lex.charset/
Dp2-cxx11.cpp30 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
/external/lldb/test/lang/cpp/char1632_t/
Dmain.cpp16 char32_t *s32 = (char32_t *)U"ЕЙРГЖО"; in main()
18 s32 = (char32_t *)U"෴"; in main()
/external/lldb/test/lang/cpp/rdar12991846/
Dmain.cpp16 char32_t *s32 = (char32_t *)U"ЕЙРГЖО"; in main()
18 s32 = (char32_t *)U"෴"; in main()

1234567