Home
last modified time | relevance | path

Searched refs:ends_with (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.template/
H A Dends_with.ptr.pass.cpp33 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 Dends_with.string_view.pass.cpp36 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 Dends_with.char.pass.cpp28 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 Dends_with.ptr.pass.cpp34 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 Dends_with.string_view.pass.cpp43 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 Dends_with.char.pass.cpp25 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 Dstringview_test.cpp67 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 DStringView.h124 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 Dstring_view161 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 Dstring331 …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 DCxx2bPapers.csv20 "`P1659R3 <https://wg21.link/P1659R3>`__","LWG","starts_with and ends_with","June 2021","",""
/llvm-project-15.0.7/lldb/docs/
H A Dlldb-platform-packets.txt190 // "name_match" enum One of: "equals", "starts_with", "ends_with",
H A Dlldb-gdb-remote.txt1651 // "name_match" enum One of: "equals", "starts_with", "ends_with",