/external/libcxx/test/std/strings/string.view/string.view.template/ |
D | ends_with.ptr.pass.cpp | 34 LIBCPP_ASSERT_NOEXCEPT(sv0.ends_with("")); in main() 36 assert ( sv0.ends_with("")); in main() 37 assert (!sv0.ends_with("e")); in main() 39 assert ( sv1.ends_with("")); in main() 40 assert ( sv1.ends_with("e")); in main() 41 assert (!sv1.ends_with("de")); in main() 42 assert (!sv1.ends_with("cde")); in main() 43 assert (!sv1.ends_with("bcde")); in main() 44 assert (!sv1.ends_with("abcde")); in main() 45 assert (!sv1.ends_with("def")); in main() [all …]
|
D | ends_with.string_view.pass.cpp | 34 ASSERT_NOEXCEPT(sv0.ends_with(sv0)); in main() 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() 45 assert (!sv1.ends_with(svNot)); in main() [all …]
|
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()
|
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.template/ |
D | ends_with.ptr.pass.cpp | 33 LIBCPP_ASSERT_NOEXCEPT(sv0.ends_with("")); in main() 35 assert ( sv0.ends_with("")); in main() 36 assert (!sv0.ends_with("e")); in main() 38 assert ( sv1.ends_with("")); in main() 39 assert ( sv1.ends_with("e")); in main() 40 assert (!sv1.ends_with("de")); in main() 41 assert (!sv1.ends_with("cde")); in main() 42 assert (!sv1.ends_with("bcde")); in main() 43 assert (!sv1.ends_with("abcde")); in main() 44 assert (!sv1.ends_with("def")); in main() [all …]
|
D | ends_with.string_view.pass.cpp | 33 ASSERT_NOEXCEPT(sv0.ends_with(sv0)); in main() 35 assert ( sv0.ends_with(sv0)); in main() 36 assert (!sv0.ends_with(sv1)); in main() 38 assert ( sv1.ends_with(sv0)); in main() 39 assert ( sv1.ends_with(sv1)); in main() 40 assert (!sv1.ends_with(sv2)); in main() 41 assert (!sv1.ends_with(sv3)); in main() 42 assert (!sv1.ends_with(sv4)); in main() 43 assert (!sv1.ends_with(sv5)); in main() 44 assert (!sv1.ends_with(svNot)); in main() [all …]
|
D | ends_with.char.pass.cpp | 27 ASSERT_NOEXCEPT(sv1.ends_with('e')); in main() 29 assert (!sv1.ends_with('e')); in main() 30 assert (!sv1.ends_with('x')); in main() 31 assert ( sv2.ends_with('e')); in main() 32 assert (!sv2.ends_with('x')); in main() 40 static_assert (!sv1.ends_with('e'), "" ); in main() 41 static_assert (!sv1.ends_with('x'), "" ); in main() 42 static_assert ( sv2.ends_with('e'), "" ); in main() 43 static_assert (!sv2.ends_with('x'), "" ); in main()
|
/external/libcxx/test/std/strings/basic.string/string.ends_with/ |
D | ends_with.ptr.pass.cpp | 34 LIBCPP_ASSERT_NOEXCEPT(s0.ends_with("")); in main() 36 assert ( s0.ends_with("")); in main() 37 assert (!s0.ends_with("e")); in main() 39 assert ( s1.ends_with("")); in main() 40 assert ( s1.ends_with("e")); in main() 41 assert (!s1.ends_with("de")); in main() 42 assert (!s1.ends_with("cde")); in main() 43 assert (!s1.ends_with("bcde")); in main() 44 assert (!s1.ends_with("abcde")); in main() 45 assert (!s1.ends_with("def")); in main() [all …]
|
D | ends_with.string_view.pass.cpp | 43 ASSERT_NOEXCEPT(s0.ends_with(sv0)); in main() 45 assert ( s0.ends_with(sv0)); in main() 46 assert (!s0.ends_with(sv1)); in main() 48 assert ( s1.ends_with(sv0)); in main() 49 assert ( s1.ends_with(sv1)); in main() 50 assert (!s1.ends_with(sv2)); in main() 51 assert (!s1.ends_with(sv3)); in main() 52 assert (!s1.ends_with(sv4)); in main() 53 assert (!s1.ends_with(sv5)); in main() 54 assert (!s1.ends_with(svNot)); in main() [all …]
|
D | ends_with.char.pass.cpp | 27 ASSERT_NOEXCEPT(s1.ends_with('e')); in main() 29 assert (!s1.ends_with('e')); in main() 30 assert (!s1.ends_with('x')); in main() 31 assert ( s2.ends_with('e')); in main() 32 assert (!s2.ends_with('x')); in main()
|
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ends_with/ |
D | ends_with.ptr.pass.cpp | 33 LIBCPP_ASSERT_NOEXCEPT(s0.ends_with("")); in main() 35 assert ( s0.ends_with("")); in main() 36 assert (!s0.ends_with("e")); in main() 38 assert ( s1.ends_with("")); in main() 39 assert ( s1.ends_with("e")); in main() 40 assert (!s1.ends_with("de")); in main() 41 assert (!s1.ends_with("cde")); in main() 42 assert (!s1.ends_with("bcde")); in main() 43 assert (!s1.ends_with("abcde")); in main() 44 assert (!s1.ends_with("def")); in main() [all …]
|
D | ends_with.string_view.pass.cpp | 42 ASSERT_NOEXCEPT(s0.ends_with(sv0)); in main() 44 assert ( s0.ends_with(sv0)); in main() 45 assert (!s0.ends_with(sv1)); in main() 47 assert ( s1.ends_with(sv0)); in main() 48 assert ( s1.ends_with(sv1)); in main() 49 assert (!s1.ends_with(sv2)); in main() 50 assert (!s1.ends_with(sv3)); in main() 51 assert (!s1.ends_with(sv4)); in main() 52 assert (!s1.ends_with(sv5)); in main() 53 assert (!s1.ends_with(svNot)); in main() [all …]
|
D | ends_with.char.pass.cpp | 26 ASSERT_NOEXCEPT(s1.ends_with('e')); in main() 28 assert (!s1.ends_with('e')); in main() 29 assert (!s1.ends_with('x')); in main() 30 assert ( s2.ends_with('e')); in main() 31 assert (!s2.ends_with('x')); in main()
|
/external/libchrome/base/strings/ |
D | string_piece_unittest.cc | 572 ASSERT_TRUE(a.ends_with(a)); in TEST() 573 ASSERT_TRUE(a.ends_with("bar")); in TEST() 574 ASSERT_TRUE(a.ends_with(e)); in TEST() 575 ASSERT_TRUE(b.ends_with(s1)); in TEST() 576 ASSERT_TRUE(b.ends_with(b)); in TEST() 577 ASSERT_TRUE(b.ends_with(e)); in TEST() 578 ASSERT_TRUE(e.ends_with("")); in TEST() 579 ASSERT_TRUE(!a.ends_with(b)); in TEST() 580 ASSERT_TRUE(!b.ends_with(a)); in TEST() 581 ASSERT_TRUE(!e.ends_with(a)); in TEST() [all …]
|
/external/rust/cxx/gen/cmd/src/ |
D | output.rs | 10 pub(crate) fn ends_with(&self, suffix: &str) -> bool { in ends_with() method 13 Output::File(path) => path.to_string_lossy().ends_with(suffix), in ends_with()
|
D | main.rs | 75 || output.ends_with(".h") in try_main() 76 || output.ends_with(".hh") in try_main() 77 || output.ends_with(".hpp") in try_main()
|
/external/rust/cxx/gen/build/src/ |
D | deps.rs | 66 if k.ends_with("_CXXBRIDGE_PREFIX") { in direct_dependencies() 72 if k.ends_with("_CXXBRIDGE_LINKS") { in direct_dependencies() 80 if counter_len == 0 || !without_counter.ends_with("_CXXBRIDGE_DIR") { in direct_dependencies()
|
/external/grpc-grpc/test/cpp/util/ |
D | string_ref_test.cc | 145 EXPECT_TRUE(s1.ends_with(s1)); in TEST_F() 146 EXPECT_FALSE(s1.ends_with(s2)); in TEST_F() 147 EXPECT_FALSE(s2.ends_with(s1)); in TEST_F() 148 EXPECT_FALSE(s2.ends_with(s3)); in TEST_F() 149 EXPECT_TRUE(s3.ends_with(s2)); in TEST_F()
|
/external/rust/crates/syn/src/ |
D | bigint.rs | 34 len + !self.digits.ends_with(&[0, 0]) as usize + !self.digits.ends_with(&[0]) as usize; in reserve_two_digits()
|
/external/rust/crates/futures-util/src/io/ |
D | lines.rs | 44 if this.buf.ends_with('\n') { in poll_next() 46 if this.buf.ends_with('\r') { in poll_next()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 619 EXPECT_TRUE(a.ends_with(a)); in TEST() 620 EXPECT_TRUE(a.ends_with("bar")); in TEST() 621 EXPECT_TRUE(a.ends_with(e)); in TEST() 622 EXPECT_TRUE(b.ends_with(s1)); in TEST() 623 EXPECT_TRUE(b.ends_with(b)); in TEST() 624 EXPECT_TRUE(b.ends_with(e)); in TEST() 625 EXPECT_TRUE(e.ends_with("")); in TEST() 626 EXPECT_TRUE(!a.ends_with(b)); in TEST() 627 EXPECT_TRUE(!b.ends_with(a)); in TEST() 628 EXPECT_TRUE(!e.ends_with(a)); in TEST() [all …]
|
/external/rust/crates/tokio/src/io/util/ |
D | lines.rs | 123 if me.buf.ends_with('\n') { in poll_next_line() 126 if me.buf.ends_with('\r') { in poll_next_line()
|
/external/python/cpython3/Lib/test/ |
D | test_module.py | 262 ends_with = "__init__.py'>" 265 self.assertEqual(r[-len(ends_with):], ends_with, 266 '{!r} does not end with {!r}'.format(r, ends_with))
|
/external/rust/crates/structopt-derive/src/ |
D | doc_comments.rs | 91 if s.ends_with('.') && !s.ends_with("..") { in remove_period()
|
/external/rust/crates/textwrap/src/ |
D | indentation.rs | 132 if result.ends_with('\n') && !s.ends_with('\n') { in dedent()
|
/external/rust/crates/libloading/tests/ |
D | library_filename.rs | 16 assert!(Path::new(&resolved).ends_with(EXPECTED)); in test_library_filename()
|