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

1 2 3

  /external/libcxx/test/std/strings/string.view/string.view.template/
ends_with.char.pass.cpp 26 SV sv2 { "abcde", 5 };
32 assert ( sv2.ends_with('e'));
33 assert (!sv2.ends_with('x'));
40 constexpr SV sv2 { "abcde", 5 };
43 static_assert ( sv2.ends_with('e'), "" );
44 static_assert (!sv2.ends_with('x'), "" );
starts_with.char.pass.cpp 26 SV sv2 { "abcde", 5 };
32 assert ( sv2.starts_with('a'));
33 assert (!sv2.starts_with('x'));
40 constexpr SV sv2 { "abcde", 5 };
43 static_assert ( sv2.starts_with('a'), "" );
44 static_assert (!sv2.starts_with('x'), "" );
ends_with.ptr.pass.cpp 28 SV sv2 { s + 3, 2 };
47 assert ( sv2.ends_with(""));
48 assert ( sv2.ends_with("e"));
49 assert ( sv2.ends_with("de"));
50 assert (!sv2.ends_with("cde"));
51 assert (!sv2.ends_with("bcde"));
52 assert (!sv2.ends_with("abcde"));
53 assert (!sv2.ends_with("def"));
70 constexpr SV sv2 { s + 3, 2 };
87 static_assert ( sv2.ends_with(""), "" )
    [all...]
starts_with.ptr.pass.cpp 28 SV sv2 { s, 2 };
47 assert ( sv2.starts_with(s + 5));
48 assert ( sv2.starts_with("a"));
49 assert ( sv2.starts_with("ab"));
50 assert (!sv2.starts_with("abc"));
51 assert (!sv2.starts_with("abcd"));
52 assert (!sv2.starts_with("abcde"));
53 assert (!sv2.starts_with("def"));
70 constexpr SV sv2 { s, 2 };
87 static_assert ( sv2.starts_with(s + 5), "" )
    [all...]
ends_with.string_view.pass.cpp 28 SV sv2 { s + 3, 2 };
41 assert (!sv1.ends_with(sv2));
47 assert ( sv2.ends_with(sv0));
48 assert ( sv2.ends_with(sv1));
49 assert ( sv2.ends_with(sv2));
50 assert (!sv2.ends_with(sv3));
51 assert (!sv2.ends_with(sv4));
52 assert (!sv2.ends_with(sv5));
53 assert (!sv2.ends_with(svNot))
    [all...]
starts_with.string_view.pass.cpp 28 SV sv2 { s, 2 };
41 assert (!sv1.starts_with(sv2));
47 assert ( sv2.starts_with(sv0));
48 assert ( sv2.starts_with(sv1));
49 assert ( sv2.starts_with(sv2));
50 assert (!sv2.starts_with(sv3));
51 assert (!sv2.starts_with(sv4));
52 assert (!sv2.starts_with(sv5));
53 assert (!sv2.starts_with(svNot))
    [all...]
  /external/libcxx/test/std/strings/string.view/string.view.comparison/
opge.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
64 static_assert ( sv2 >= "", "" );
65 static_assert (!("" >= sv2), "" );
66 static_assert ( sv2 >= "abcde", "" );
67 static_assert ( "abcde" >= sv2, "" );
68 static_assert (!(sv2 >= "abcde0"), "" );
69 static_assert ( "abcde0" >= sv2, "" );
opgt.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
64 static_assert ( sv2 > "", "" );
65 static_assert (!("" > sv2), "" );
66 static_assert (!(sv2 > "abcde"), "" );
67 static_assert (!("abcde" > sv2), "" );
68 static_assert (!(sv2 > "abcde0"), "" );
69 static_assert ( "abcde0" > sv2, "" );
ople.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
64 static_assert (!(sv2 <= ""), "" );
65 static_assert ( "" <= sv2, "" );
66 static_assert ( sv2 <= "abcde", "" );
67 static_assert ( "abcde" <= sv2, "" );
68 static_assert ( sv2 <= "abcde0", "" );
69 static_assert (!("abcde0" <= sv2), "" );
oplt.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
64 static_assert (!(sv2 < ""), "" );
65 static_assert ( "" < sv2, "" );
66 static_assert (!(sv2 < "abcde"), "" );
67 static_assert (!("abcde" < sv2), "" );
68 static_assert ( sv2 < "abcde0", "" );
69 static_assert (!("abcde0" < sv2), "" );
opeq.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
63 static_assert ( sv2 == "abcde", "" );
64 static_assert ( "abcde" == sv2, "" );
65 static_assert (!(sv2 == "abcde0"), "" );
66 static_assert (!("abcde0" == sv2), "" );
opge.string_view.string_view.pass.cpp 56 constexpr SV sv2 { "abcde", 5 };
59 static_assert ( sv2 >= sv2, "" );
61 static_assert (!(sv1 >= sv2), "" );
62 static_assert ( sv2 >= sv1, "" );
opgt.string_view.string_view.pass.cpp 56 constexpr SV sv2 { "abcde", 5 };
59 static_assert (!(sv2 > sv2), "" );
61 static_assert (!(sv1 > sv2), "" );
62 static_assert ( sv2 > sv1, "" );
ople.string_view.string_view.pass.cpp 56 constexpr SV sv2 { "abcde", 5 };
59 static_assert ( sv2 <= sv2, "" );
61 static_assert ( sv1 <= sv2, "" );
62 static_assert (!(sv2 <= sv1), "" );
oplt.string_view.string_view.pass.cpp 56 constexpr SV sv2 { "abcde", 5 };
59 static_assert (!(sv2 < sv2), "" );
61 static_assert ( sv1 < sv2, "" );
62 static_assert (!(sv2 < sv1), "" );
opne.string_view.pointer.pass.cpp 57 constexpr SV sv2 { "abcde", 5 };
64 static_assert (!(sv2 != "abcde"), "" );
65 static_assert (!("abcde" != sv2), "" );
66 static_assert ( sv2 != "abcde0", "" );
67 static_assert ( "abcde0" != sv2, "" );
  /external/libcxx/test/std/strings/string.view/string.view.modifiers/
swap.pass.cpp 25 SV sv2; local
29 assert ( sv2.size() == 0 );
31 sv1.swap ( sv2 );
33 assert ( sv2.size() == len );
34 assert ( sv2.data() == s );
43 SV sv2 { sv1.data(), k };
44 sv1.swap ( sv2 );
  /external/libcxx/test/std/strings/string.view/string.view.ops/
substr.pass.cpp 101 constexpr std::string_view sv2 = sv1.substr ( 0, 3 ); local
102 static_assert ( sv2.size() == 3, "" );
103 static_assert ( sv2[0] == 'A', "" );
104 static_assert ( sv2[1] == 'B', "" );
105 static_assert ( sv2[2] == 'C', "" );
109 constexpr std::string_view sv2 = sv1.substr ( 3, 0 ); local
110 static_assert ( sv2.size() == 0, "" );
114 constexpr std::string_view sv2 = sv1.substr ( 3, 3 ); local
115 static_assert ( sv2.size() == 2, "" );
116 static_assert ( sv2[0] == 'D', "" )
    [all...]
compare.sv.pass.cpp 24 std::basic_string_view<CharT> sv2, int expected ) {
25 assert ( sign( sv1.compare(sv2)) == sign(expected));
34 string_view_t sv2 ( s2 );
35 test1(sv1, sv2, expected);
114 constexpr SV sv2 { "abcde", 5 };
116 static_assert ( sv1.compare(sv2) == 0, "" );
117 static_assert ( sv2.compare(sv1) == 0, "" );
118 static_assert ( sv3.compare(sv2) > 0, "" );
119 static_assert ( sv2.compare(sv3) < 0, "" );
  /external/libcxx/test/std/strings/string.view/string.view.find/
rfind_char_size.pass.cpp 73 constexpr SV sv2 { "abcde", 5 };
77 static_assert (sv2.rfind( 'b', 0 ) == SV::npos, "" );
78 static_assert (sv2.rfind( 'b', 1 ) == 1, "" );
79 static_assert (sv2.rfind( 'b', 2 ) == 1, "" );
80 static_assert (sv2.rfind( 'b', 3 ) == 1, "" );
81 static_assert (sv2.rfind( 'b', 4 ) == 1, "" );
find_char_size.pass.cpp 74 constexpr SV sv2 { "abcde", 5 };
78 static_assert (sv2.find( 'c', 0 ) == 2, "" );
79 static_assert (sv2.find( 'c', 1 ) == 2, "" );
80 static_assert (sv2.find( 'c', 2 ) == 2, "" );
81 static_assert (sv2.find( 'c', 3 ) == SV::npos, "" );
82 static_assert (sv2.find( 'c', 4 ) == SV::npos, "" );
find_first_not_of_char_size.pass.cpp 76 constexpr SV sv2 { "abcde", 5 };
80 static_assert (sv2.find_first_not_of( 'q', 0 ) == 0, "" );
81 static_assert (sv2.find_first_not_of( 'q', 1 ) == 1, "" );
82 static_assert (sv2.find_first_not_of( 'q', 5 ) == SV::npos, "" );
find_last_not_of_char_size.pass.cpp 74 constexpr SV sv2 { "abcde", 5 };
78 static_assert (sv2.find_last_not_of( 'a', 0 ) == SV::npos, "" );
79 static_assert (sv2.find_last_not_of( 'a', 1 ) == 1, "" );
80 static_assert (sv2.find_last_not_of( 'e', 5 ) == 3, "" );
  /external/libcxx/test/std/strings/basic.string/string.ends_with/
ends_with.string_view.pass.cpp 37 SV sv2 { s + 3, 2 };
50 assert (!s1.ends_with(sv2));
58 assert ( s2.ends_with(sv2));
66 assert (!sNot.ends_with(sv2));
  /external/libcxx/test/std/strings/basic.string/string.starts_with/
starts_with.string_view.pass.cpp 37 SV sv2 { s, 2 };
50 assert (!s1.starts_with(sv2));
58 assert ( s2.starts_with(sv2));
66 assert (!sNot.starts_with(sv2));

Completed in 4580 milliseconds

1 2 3