Home
last modified time | relevance | path

Searched refs:sv2 (Results 1 – 25 of 61) sorted by relevance

123

/external/libcxx/test/std/strings/string.view/string.view.template/
Dstarts_with.string_view.pass.cpp28 SV sv2 { s, 2 }; in main() local
41 assert (!sv1.starts_with(sv2)); in main()
47 assert ( sv2.starts_with(sv0)); in main()
48 assert ( sv2.starts_with(sv1)); in main()
49 assert ( sv2.starts_with(sv2)); in main()
50 assert (!sv2.starts_with(sv3)); in main()
51 assert (!sv2.starts_with(sv4)); in main()
52 assert (!sv2.starts_with(sv5)); in main()
53 assert (!sv2.starts_with(svNot)); in main()
57 assert (!svNot.starts_with(sv2)); in main()
[all …]
Dends_with.string_view.pass.cpp28 SV sv2 { s + 3, 2 }; in main() local
41 assert (!sv1.ends_with(sv2)); in main()
47 assert ( sv2.ends_with(sv0)); in main()
48 assert ( sv2.ends_with(sv1)); in main()
49 assert ( sv2.ends_with(sv2)); in main()
50 assert (!sv2.ends_with(sv3)); in main()
51 assert (!sv2.ends_with(sv4)); in main()
52 assert (!sv2.ends_with(sv5)); in main()
53 assert (!sv2.ends_with(svNot)); in main()
57 assert (!svNot.ends_with(sv2)); in main()
[all …]
Dends_with.ptr.pass.cpp28 SV sv2 { s + 3, 2 }; in main() local
47 assert ( sv2.ends_with("")); in main()
48 assert ( sv2.ends_with("e")); in main()
49 assert ( sv2.ends_with("de")); in main()
50 assert (!sv2.ends_with("cde")); in main()
51 assert (!sv2.ends_with("bcde")); in main()
52 assert (!sv2.ends_with("abcde")); in main()
53 assert (!sv2.ends_with("def")); in main()
70 constexpr SV sv2 { s + 3, 2 }; in main() local
87 static_assert ( sv2.ends_with(""), "" ); in main()
[all …]
Dstarts_with.ptr.pass.cpp28 SV sv2 { s, 2 }; in main() local
47 assert ( sv2.starts_with(s + 5)); in main()
48 assert ( sv2.starts_with("a")); in main()
49 assert ( sv2.starts_with("ab")); in main()
50 assert (!sv2.starts_with("abc")); in main()
51 assert (!sv2.starts_with("abcd")); in main()
52 assert (!sv2.starts_with("abcde")); in main()
53 assert (!sv2.starts_with("def")); in main()
70 constexpr SV sv2 { s, 2 }; in main() local
87 static_assert ( sv2.starts_with(s + 5), "" ); in main()
[all …]
Dstarts_with.char.pass.cpp26 SV sv2 { "abcde", 5 }; in main() local
32 assert ( sv2.starts_with('a')); in main()
33 assert (!sv2.starts_with('x')); in main()
40 constexpr SV sv2 { "abcde", 5 }; in main() local
43 static_assert ( sv2.starts_with('a'), "" ); in main()
44 static_assert (!sv2.starts_with('x'), "" ); in main()
Dends_with.char.pass.cpp26 SV sv2 { "abcde", 5 }; in main() local
32 assert ( sv2.ends_with('e')); in main()
33 assert (!sv2.ends_with('x')); in main()
40 constexpr SV sv2 { "abcde", 5 }; in main() local
43 static_assert ( sv2.ends_with('e'), "" ); in main()
44 static_assert (!sv2.ends_with('x'), "" ); in main()
/external/libcxx/test/std/strings/string.view/string.view.ops/
Dsubstr.pass.cpp101 constexpr std::string_view sv2 = sv1.substr ( 0, 3 ); in main() local
102 static_assert ( sv2.size() == 3, "" ); in main()
103 static_assert ( sv2[0] == 'A', "" ); in main()
104 static_assert ( sv2[1] == 'B', "" ); in main()
105 static_assert ( sv2[2] == 'C', "" ); in main()
109 constexpr std::string_view sv2 = sv1.substr ( 3, 0 ); in main() local
110 static_assert ( sv2.size() == 0, "" ); in main()
114 constexpr std::string_view sv2 = sv1.substr ( 3, 3 ); in main() local
115 static_assert ( sv2.size() == 2, "" ); in main()
116 static_assert ( sv2[0] == 'D', "" ); in main()
[all …]
Dcompare.sv.pass.cpp24 std::basic_string_view<CharT> sv2, int expected ) { in test1() argument
25 assert ( sign( sv1.compare(sv2)) == sign(expected)); in test1()
34 string_view_t sv2 ( s2 ); in test() local
35 test1(sv1, sv2, expected); in test()
114 constexpr SV sv2 { "abcde", 5 }; in main() local
116 static_assert ( sv1.compare(sv2) == 0, "" ); in main()
117 static_assert ( sv2.compare(sv1) == 0, "" ); in main()
118 static_assert ( sv3.compare(sv2) > 0, "" ); in main()
119 static_assert ( sv2.compare(sv3) < 0, "" ); in main()
Dcompare.size_size_sv.pass.cpp25 std::basic_string_view<CharT> sv2, int expected ) { in test1() argument
28 assert(sign( sv1.compare(pos1, n1, sv2)) == sign(expected)); in test1()
31 assert(sign( sv1.compare(pos1, n1, sv2)) == sign(expected)); in test1()
45 string_view_t sv2 ( s2 ); in test() local
46 test1(sv1, pos1, n1, sv2, expected); in test()
397 constexpr SV sv2 { "abcde", 0 }; in main() local
398 static_assert ( sv1.compare(5, 1, sv2) == 0, "" ); in main()
399 static_assert ( sv1.compare(2, 4, sv2) == 1, "" ); in main()
/external/libcxx/test/std/strings/string.view/string.view.comparison/
Dople.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
64 static_assert (!(sv2 <= ""), "" ); in main()
65 static_assert ( "" <= sv2, "" ); in main()
66 static_assert ( sv2 <= "abcde", "" ); in main()
67 static_assert ( "abcde" <= sv2, "" ); in main()
68 static_assert ( sv2 <= "abcde0", "" ); in main()
69 static_assert (!("abcde0" <= sv2), "" ); in main()
Doplt.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
64 static_assert (!(sv2 < ""), "" ); in main()
65 static_assert ( "" < sv2, "" ); in main()
66 static_assert (!(sv2 < "abcde"), "" ); in main()
67 static_assert (!("abcde" < sv2), "" ); in main()
68 static_assert ( sv2 < "abcde0", "" ); in main()
69 static_assert (!("abcde0" < sv2), "" ); in main()
Dopge.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
64 static_assert ( sv2 >= "", "" ); in main()
65 static_assert (!("" >= sv2), "" ); in main()
66 static_assert ( sv2 >= "abcde", "" ); in main()
67 static_assert ( "abcde" >= sv2, "" ); in main()
68 static_assert (!(sv2 >= "abcde0"), "" ); in main()
69 static_assert ( "abcde0" >= sv2, "" ); in main()
Dopgt.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
64 static_assert ( sv2 > "", "" ); in main()
65 static_assert (!("" > sv2), "" ); in main()
66 static_assert (!(sv2 > "abcde"), "" ); in main()
67 static_assert (!("abcde" > sv2), "" ); in main()
68 static_assert (!(sv2 > "abcde0"), "" ); in main()
69 static_assert ( "abcde0" > sv2, "" ); in main()
Dopeq.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
63 static_assert ( sv2 == "abcde", "" ); in main()
64 static_assert ( "abcde" == sv2, "" ); in main()
65 static_assert (!(sv2 == "abcde0"), "" ); in main()
66 static_assert (!("abcde0" == sv2), "" ); in main()
Dopne.string_view.pointer.pass.cpp57 constexpr SV sv2 { "abcde", 5 }; in main() local
64 static_assert (!(sv2 != "abcde"), "" ); in main()
65 static_assert (!("abcde" != sv2), "" ); in main()
66 static_assert ( sv2 != "abcde0", "" ); in main()
67 static_assert ( "abcde0" != sv2, "" ); in main()
Dopge.string_view.string_view.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
59 static_assert ( sv2 >= sv2, "" ); in main()
61 static_assert (!(sv1 >= sv2), "" ); in main()
62 static_assert ( sv2 >= sv1, "" ); in main()
Dople.string_view.string_view.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
59 static_assert ( sv2 <= sv2, "" ); in main()
61 static_assert ( sv1 <= sv2, "" ); in main()
62 static_assert (!(sv2 <= sv1), "" ); in main()
Doplt.string_view.string_view.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
59 static_assert (!(sv2 < sv2), "" ); in main()
61 static_assert ( sv1 < sv2, "" ); in main()
62 static_assert (!(sv2 < sv1), "" ); in main()
Dopgt.string_view.string_view.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
59 static_assert (!(sv2 > sv2), "" ); in main()
61 static_assert (!(sv1 > sv2), "" ); in main()
62 static_assert ( sv2 > sv1, "" ); in main()
/external/libcxx/test/std/strings/string.view/string.view.modifiers/
Dswap.pass.cpp25 SV sv2; in test() local
29 assert ( sv2.size() == 0 ); in test()
31 sv1.swap ( sv2 ); in test()
33 assert ( sv2.size() == len ); in test()
34 assert ( sv2.data() == s ); in test()
43 SV sv2 { sv1.data(), k }; in test_ce() local
44 sv1.swap ( sv2 ); in test_ce()
/external/libcxx/test/std/strings/string.view/string.view.find/
Dfind_char_size.pass.cpp74 constexpr SV sv2 { "abcde", 5 }; in main() local
78 static_assert (sv2.find( 'c', 0 ) == 2, "" ); in main()
79 static_assert (sv2.find( 'c', 1 ) == 2, "" ); in main()
80 static_assert (sv2.find( 'c', 2 ) == 2, "" ); in main()
81 static_assert (sv2.find( 'c', 3 ) == SV::npos, "" ); in main()
82 static_assert (sv2.find( 'c', 4 ) == SV::npos, "" ); in main()
Drfind_char_size.pass.cpp73 constexpr SV sv2 { "abcde", 5 }; in main() local
77 static_assert (sv2.rfind( 'b', 0 ) == SV::npos, "" ); in main()
78 static_assert (sv2.rfind( 'b', 1 ) == 1, "" ); in main()
79 static_assert (sv2.rfind( 'b', 2 ) == 1, "" ); in main()
80 static_assert (sv2.rfind( 'b', 3 ) == 1, "" ); in main()
81 static_assert (sv2.rfind( 'b', 4 ) == 1, "" ); in main()
Drfind_string_view_size.pass.cpp156 constexpr SV sv2 { "abcde", 5 }; in main() local
159 static_assert (sv1.rfind(sv2) == SV::npos, "" ); in main()
160 static_assert (sv2.rfind(sv1) == 5, "" ); in main()
161 static_assert (sv2.rfind(sv2) == 0, "" ); in main()
162 static_assert (sv2.rfind(sv2, 1) == 0, "" ); in main()
/external/libcxx/test/std/strings/basic.string/string.ends_with/
Dends_with.string_view.pass.cpp37 SV sv2 { s + 3, 2 }; in main() local
50 assert (!s1.ends_with(sv2)); in main()
58 assert ( s2.ends_with(sv2)); in main()
66 assert (!sNot.ends_with(sv2)); in main()
/external/libcxx/test/std/strings/basic.string/string.starts_with/
Dstarts_with.string_view.pass.cpp37 SV sv2 { s, 2 }; in main() local
50 assert (!s1.starts_with(sv2)); in main()
58 assert ( s2.starts_with(sv2)); in main()
66 assert (!sNot.starts_with(sv2)); in main()

123