Home
last modified time | relevance | path

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

12

/external/libcxx/test/std/experimental/string.view/string.view.ops/
Dsubstr.pass.cpp87 constexpr std::experimental::string_view sv2 = sv1.substr ( 0, 3 ); in main() local
88 static_assert ( sv2.size() == 3, "" ); in main()
89 static_assert ( sv2[0] == 'A', "" ); in main()
90 static_assert ( sv2[1] == 'B', "" ); in main()
91 static_assert ( sv2[2] == 'C', "" ); in main()
95 constexpr std::experimental::string_view sv2 = sv1.substr ( 3, 0 ); in main() local
96 static_assert ( sv2.size() == 0, "" ); in main()
100 constexpr std::experimental::string_view sv2 = sv1.substr ( 3, 3 ); in main() local
101 static_assert ( sv2.size() == 2, "" ); in main()
102 static_assert ( sv2[0] == 'D', "" ); in main()
[all …]
Dcompare.sv.pass.cpp23 std::experimental::basic_string_view<CharT> sv2, int expected ) { in test1() argument
24 assert ( sign( sv1.compare(sv2)) == sign(expected)); in test1()
33 string_view_t sv2 ( s2 ); in test() local
34 test1(sv1, sv2, expected); in test()
113 constexpr SV sv2 { "abcde", 5 }; in main() local
115 static_assert ( sv1.compare(sv2) == 0, "" ); in main()
116 static_assert ( sv2.compare(sv1) == 0, "" ); in main()
117 static_assert ( sv3.compare(sv2) > 0, "" ); in main()
118 static_assert ( sv2.compare(sv3) < 0, "" ); in main()
Dcompare.size_size_sv.pass.cpp24 std::experimental::basic_string_view<CharT> sv2, int expected ) { in test1() argument
28 assert ( sign( sv1.compare(pos1, n1, sv2)) == sign(expected)); in test1()
40 string_view_t sv2 ( s2 ); in test() local
41 test1(sv1, pos1, n1, sv2, expected); in test()
392 constexpr SV sv2 { "abcde", 0 }; in main() local
393 static_assert ( sv1.compare(5, 1, sv2) == 0, "" ); in main()
394 static_assert ( sv1.compare(2, 4, sv2) == 1, "" ); in main()
/external/libcxx/test/std/experimental/string.view/string.view.comparison/
Dople.string_view.pointer.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
63 static_assert (!(sv2 <= ""), "" ); in main()
64 static_assert ( "" <= sv2, "" ); in main()
65 static_assert ( sv2 <= "abcde", "" ); in main()
66 static_assert ( "abcde" <= sv2, "" ); in main()
67 static_assert ( sv2 <= "abcde0", "" ); in main()
68 static_assert (!("abcde0" <= sv2), "" ); in main()
Doplt.string_view.pointer.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
63 static_assert (!(sv2 < ""), "" ); in main()
64 static_assert ( "" < sv2, "" ); in main()
65 static_assert (!(sv2 < "abcde"), "" ); in main()
66 static_assert (!("abcde" < sv2), "" ); in main()
67 static_assert ( sv2 < "abcde0", "" ); in main()
68 static_assert (!("abcde0" < sv2), "" ); in main()
Dopgt.string_view.pointer.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
63 static_assert ( sv2 > "", "" ); in main()
64 static_assert (!("" > sv2), "" ); in main()
65 static_assert (!(sv2 > "abcde"), "" ); in main()
66 static_assert (!("abcde" > sv2), "" ); in main()
67 static_assert (!(sv2 > "abcde0"), "" ); in main()
68 static_assert ( "abcde0" > sv2, "" ); in main()
Dopge.string_view.pointer.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
63 static_assert ( sv2 >= "", "" ); in main()
64 static_assert (!("" >= sv2), "" ); in main()
65 static_assert ( sv2 >= "abcde", "" ); in main()
66 static_assert ( "abcde" >= sv2, "" ); in main()
67 static_assert (!(sv2 >= "abcde0"), "" ); in main()
68 static_assert ( "abcde0" >= sv2, "" ); in main()
Dopne.string_view.pointer.pass.cpp56 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()
Dopeq.string_view.pointer.pass.cpp56 constexpr SV sv2 { "abcde", 5 }; in main() local
62 static_assert ( sv2 == "abcde", "" ); in main()
63 static_assert ( "abcde" == sv2, "" ); in main()
64 static_assert (!(sv2 == "abcde0"), "" ); in main()
65 static_assert (!("abcde0" == sv2), "" ); in main()
Doplt.string_view.string_view.pass.cpp55 constexpr SV sv2 { "abcde", 5 }; in main() local
58 static_assert (!(sv2 < sv2), "" ); in main()
60 static_assert ( sv1 < sv2, "" ); in main()
61 static_assert (!(sv2 < sv1), "" ); in main()
Dopgt.string_view.string_view.pass.cpp55 constexpr SV sv2 { "abcde", 5 }; in main() local
58 static_assert (!(sv2 > sv2), "" ); in main()
60 static_assert (!(sv1 > sv2), "" ); in main()
61 static_assert ( sv2 > sv1, "" ); in main()
Dopge.string_view.string_view.pass.cpp55 constexpr SV sv2 { "abcde", 5 }; in main() local
58 static_assert ( sv2 >= sv2, "" ); in main()
60 static_assert (!(sv1 >= sv2), "" ); in main()
61 static_assert ( sv2 >= sv1, "" ); in main()
Dople.string_view.string_view.pass.cpp55 constexpr SV sv2 { "abcde", 5 }; in main() local
58 static_assert ( sv2 <= sv2, "" ); in main()
60 static_assert ( sv1 <= sv2, "" ); in main()
61 static_assert (!(sv2 <= sv1), "" ); in main()
/external/libcxx/test/std/experimental/string.view/string.view.modifiers/
Dswap.pass.cpp23 SV sv2; in test() local
27 assert ( sv2.size() == 0 ); in test()
29 sv1.swap ( sv2 ); in test()
31 assert ( sv2.size() == len ); in test()
32 assert ( sv2.data() == s ); in test()
41 SV sv2 { sv1.data(), k }; in test_ce() local
42 sv1.swap ( sv2 ); in test_ce()
/external/libcxx/test/std/experimental/string.view/string.view.find/
Drfind_char_size.pass.cpp72 constexpr SV sv2 { "abcde", 5 }; in main() local
76 static_assert (sv2.rfind( 'b', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv2.rfind( 'b', 1 ) == 1, "" ); in main()
78 static_assert (sv2.rfind( 'b', 2 ) == 1, "" ); in main()
79 static_assert (sv2.rfind( 'b', 3 ) == 1, "" ); in main()
80 static_assert (sv2.rfind( 'b', 4 ) == 1, "" ); in main()
Dfind_char_size.pass.cpp73 constexpr SV sv2 { "abcde", 5 }; in main() local
77 static_assert (sv2.find( 'c', 0 ) == 2, "" ); in main()
78 static_assert (sv2.find( 'c', 1 ) == 2, "" ); in main()
79 static_assert (sv2.find( 'c', 2 ) == 2, "" ); in main()
80 static_assert (sv2.find( 'c', 3 ) == SV::npos, "" ); in main()
81 static_assert (sv2.find( 'c', 4 ) == SV::npos, "" ); in main()
Dfind_last_not_of_char_size.pass.cpp73 constexpr SV sv2 { "abcde", 5 }; in main() local
77 static_assert (sv2.find_last_not_of( 'a', 0 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_last_not_of( 'a', 1 ) == 1, "" ); in main()
79 static_assert (sv2.find_last_not_of( 'e', 5 ) == 3, "" ); in main()
Drfind_string_view_size.pass.cpp155 constexpr SV sv2 { "abcde", 5 }; in main() local
158 static_assert (sv1.rfind(sv2) == SV::npos, "" ); in main()
159 static_assert (sv2.rfind(sv1) == 5, "" ); in main()
160 static_assert (sv2.rfind(sv2) == 0, "" ); in main()
161 static_assert (sv2.rfind(sv2, 1) == 0, "" ); in main()
Dfind_first_not_of_char_size.pass.cpp75 constexpr SV sv2 { "abcde", 5 }; in main() local
79 static_assert (sv2.find_first_not_of( 'q', 0 ) == 0, "" ); in main()
80 static_assert (sv2.find_first_not_of( 'q', 1 ) == 1, "" ); in main()
81 static_assert (sv2.find_first_not_of( 'q', 5 ) == SV::npos, "" ); in main()
Dfind_first_of_char_size.pass.cpp73 constexpr SV sv2 { "abcde", 5 }; in main() local
77 static_assert (sv2.find_first_of( 'q', 0 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_first_of( 'e', 1 ) == 4, "" ); in main()
79 static_assert (sv2.find_first_of( 'e', 5 ) == SV::npos, "" ); in main()
Dfind_last_of_char_size.pass.cpp73 constexpr SV sv2 { "abcde", 5 }; in main() local
77 static_assert (sv2.find_last_of( 'a', 0 ) == 0, "" ); in main()
78 static_assert (sv2.find_last_of( 'a', 1 ) == 0, "" ); in main()
79 static_assert (sv2.find_last_of( 'e', 5 ) == 4, "" ); in main()
Dfind_string_view_size.pass.cpp155 constexpr SV sv2 { "abcde", 5 }; in main() local
158 static_assert (sv1.find(sv2) == SV::npos, "" ); in main()
159 static_assert (sv2.find(sv1) == 0, "" ); in main()
160 static_assert (sv2.find(sv2) == 0, "" ); in main()
161 static_assert (sv2.find(sv2, 1 ) == SV::npos, "" ); in main()
Dfind_last_of_pointer_size.pass.cpp156 constexpr SV sv2 { "abcde", 5 }; in main() local
160 static_assert (sv2.find_last_of( "", 0) == SV::npos, "" ); in main()
161 static_assert (sv2.find_last_of( "gfsrt", 5) == SV::npos, "" ); in main()
162 static_assert (sv2.find_last_of( "lecar", 5) == 4, "" ); in main()
Dfind_last_not_of_pointer_size.pass.cpp156 constexpr SV sv2 { "abcde", 5 }; in main() local
160 static_assert (sv2.find_last_not_of( "", 0) == 0, "" ); in main()
161 static_assert (sv2.find_last_not_of( "gfsrt", 5) == 4, "" ); in main()
162 static_assert (sv2.find_last_not_of( "lecar", 5) == 3, "" ); in main()
Drfind_pointer_size.pass.cpp162 constexpr SV sv2 { "abcde", 5 }; in main() local
166 static_assert (sv2.rfind( "") == 5, "" ); in main()
167 static_assert (sv2.rfind( "abcde") == 0, "" ); in main()
168 static_assert (sv2.rfind( "abcde", 1) == 0, "" ); in main()

12