| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.template/ |
| H A D | ends_with.ptr.pass.cpp | 33 assert ( sv0.ends_with("")); in main() 34 assert (!sv0.ends_with("e")); in main() 36 assert ( sv1.ends_with("")); in main() 37 assert ( sv1.ends_with("e")); in main() 38 assert (!sv1.ends_with("de")); in main() 39 assert (!sv1.ends_with("cde")); in main() 42 assert (!sv1.ends_with("def")); in main() 44 assert ( sv2.ends_with("")); in main() 45 assert ( sv2.ends_with("e")); in main() 46 assert ( sv2.ends_with("de")); in main() [all …]
|
| H A D | ends_with.string_view.pass.cpp | 36 assert ( sv0.ends_with(sv0)); in main() 37 assert (!sv0.ends_with(sv1)); in main() 39 assert ( sv1.ends_with(sv0)); in main() 40 assert ( sv1.ends_with(sv1)); in main() 41 assert (!sv1.ends_with(sv2)); in main() 42 assert (!sv1.ends_with(sv3)); in main() 43 assert (!sv1.ends_with(sv4)); in main() 44 assert (!sv1.ends_with(sv5)); in main() 47 assert ( sv2.ends_with(sv0)); in main() 48 assert ( sv2.ends_with(sv1)); in main() [all …]
|
| H A D | ends_with.char.pass.cpp | 28 ASSERT_NOEXCEPT(sv1.ends_with('e')); in main() 30 assert (!sv1.ends_with('e')); in main() 31 assert (!sv1.ends_with('x')); in main() 32 assert ( sv2.ends_with('e')); in main() 33 assert (!sv2.ends_with('x')); in main() 41 static_assert (!sv1.ends_with('e'), "" ); in main() 42 static_assert (!sv1.ends_with('x'), "" ); in main() 43 static_assert ( sv2.ends_with('e'), "" ); in main() 44 static_assert (!sv2.ends_with('x'), "" ); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ends_with/ |
| H A D | ends_with.ptr.pass.cpp | 34 assert ( s0.ends_with("")); in test() 35 assert (!s0.ends_with("e")); in test() 37 assert ( s1.ends_with("")); in test() 38 assert ( s1.ends_with("e")); in test() 39 assert (!s1.ends_with("de")); in test() 40 assert (!s1.ends_with("cde")); in test() 43 assert (!s1.ends_with("def")); in test() 45 assert ( s2.ends_with("")); in test() 46 assert ( s2.ends_with("e")); in test() 47 assert ( s2.ends_with("de")); in test() [all …]
|
| H A D | ends_with.string_view.pass.cpp | 43 assert ( s0.ends_with(sv0)); in test() 44 assert (!s0.ends_with(sv1)); in test() 46 assert ( s1.ends_with(sv0)); in test() 47 assert ( s1.ends_with(sv1)); in test() 48 assert (!s1.ends_with(sv2)); in test() 49 assert (!s1.ends_with(sv3)); in test() 50 assert (!s1.ends_with(sv4)); in test() 51 assert (!s1.ends_with(sv5)); in test() 54 assert ( s2.ends_with(sv0)); in test() 55 assert ( s2.ends_with(sv1)); in test() [all …]
|
| H A D | ends_with.char.pass.cpp | 25 ASSERT_NOEXCEPT(s1.ends_with('e')); in test() 27 assert (!s1.ends_with('e')); in test() 28 assert (!s1.ends_with('x')); in test() 29 assert ( s2.ends_with('e')); in test() 30 assert (!s2.ends_with('x')); in test()
|
| /llvm-project-15.0.7/libc/test/src/__support/CPP/ |
| H A D | stringview_test.cpp | 67 ASSERT_TRUE(v.ends_with('c')); in TEST() 68 ASSERT_TRUE(v.ends_with(StringView("c"))); in TEST() 69 ASSERT_TRUE(v.ends_with(StringView("bc"))); in TEST() 70 ASSERT_TRUE(v.ends_with(StringView("abc"))); in TEST() 71 ASSERT_TRUE(v.ends_with(StringView())); in TEST() 72 ASSERT_TRUE(v.ends_with(StringView(""))); in TEST() 73 ASSERT_FALSE(v.ends_with('1')); in TEST() 74 ASSERT_FALSE(v.ends_with(StringView("123"))); in TEST() 75 ASSERT_FALSE(v.ends_with(StringView("abd"))); in TEST() 76 ASSERT_FALSE(v.ends_with(StringView("aaa"))); in TEST() [all …]
|
| /llvm-project-15.0.7/libc/src/__support/CPP/ |
| H A D | StringView.h | 124 while (Copy.ends_with(C)) in trim() 141 bool ends_with(const char Suffix) const { in ends_with() function 146 bool ends_with(StringView Suffix) const { in ends_with() function 283 if (!ends_with(Suffix)) in consume_back()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | string_view | 161 constexpr bool ends_with(basic_string_view s) const noexcept; // C++20 162 constexpr bool ends_with(charT c) const noexcept; // C++20 163 constexpr bool ends_with(const charT* s) const; // C++20 699 bool ends_with(basic_string_view __s) const noexcept 703 bool ends_with(value_type __c) const noexcept 707 bool ends_with(const value_type* __s) const noexcept 708 { return ends_with(basic_string_view(__s)); }
|
| H A D | string | 331 …constexpr bool ends_with(basic_string_view<charT, traits> sv) const noexcept; // C++… 332 …constexpr bool ends_with(charT c) const noexcept; // C++… 333 …constexpr bool ends_with(const charT* s) const; // C++… 1448 bool ends_with(__self_view __sv) const noexcept 1449 { return __self_view(data(), size()).ends_with( __sv); } 1452 bool ends_with(value_type __c) const noexcept 1456 bool ends_with(const value_type* __s) const noexcept 1457 { return ends_with(__self_view(__s)); }
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | Cxx2bPapers.csv | 20 "`P1659R3 <https://wg21.link/P1659R3>`__","LWG","starts_with and ends_with","June 2021","",""
|
| /llvm-project-15.0.7/lldb/docs/ |
| H A D | lldb-platform-packets.txt | 190 // "name_match" enum One of: "equals", "starts_with", "ends_with",
|
| H A D | lldb-gdb-remote.txt | 1651 // "name_match" enum One of: "equals", "starts_with", "ends_with",
|