Home
last modified time | relevance | path

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

12

/external/libcxx/test/std/strings/string.view/string.view.template/
Dends_with.ptr.pass.cpp34 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 …]
Dends_with.string_view.pass.cpp34 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 …]
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()
/external/libcxx/test/std/strings/basic.string/string.ends_with/
Dends_with.ptr.pass.cpp34 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 …]
Dends_with.string_view.pass.cpp43 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 …]
Dends_with.char.pass.cpp27 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/webrtc/webrtc/base/
Dstringutils_unittest.cc100 EXPECT_TRUE(ends_with("foobar", "bar")); in TEST()
101 EXPECT_TRUE(ends_with("foobar", "foobar")); in TEST()
102 EXPECT_TRUE(ends_with("foobar", "")); in TEST()
103 EXPECT_TRUE(ends_with("", "")); in TEST()
104 EXPECT_FALSE(ends_with("foobar", "foo")); in TEST()
105 EXPECT_FALSE(ends_with("foobar", "foobarbaz")); in TEST()
106 EXPECT_FALSE(ends_with("", "f")); in TEST()
Dstringutils.cc108 bool ends_with(const char *s1, const char *s2) { in ends_with() function
Dstringutils.h311 bool ends_with(const char *s1, const char *s2);
/external/v8/tools/clang/plugins/
DChromeClassTester.cpp29 bool ends_with(const std::string& one, const std::string& two) { in ends_with() function
67 if (!options_.check_gmock_objects && ends_with(base_name, "Matcher")) in CheckTag()
148 if (ends_with(filename, ".cc") || ends_with(filename, ".cpp") || in InImplementationFile()
149 ends_with(filename, ".mm")) { in InImplementationFile()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc572 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 …]
Dstring_piece.h304 constexpr bool ends_with(BasicStringPiece x) const noexcept { in ends_with() function
/external/grpc-grpc/test/cpp/util/
Dstring_ref_test.cc145 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/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc619 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 …]
Dstringpiece.cc83 if (ends_with(x)) { in ConsumeFromEnd()
Dstringpiece.h335 bool ends_with(StringPiece x) const { in ends_with() function
/external/python/cpython3/Lib/test/
Dtest_module.py263 ends_with = "__init__.py'>"
266 self.assertEqual(r[-len(ends_with):], ends_with,
267 '{!r} does not end with {!r}'.format(r, ends_with))
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc332 StringPiece src_no_padding(src, 0, src.ends_with("=") in DecodeBase64()
346 StringPiece src_no_padding(src, 0, src.ends_with("=") in DecodeBase64()
/external/libcxx/include/
Dstring_view149 constexpr bool ends_with(basic_string_view s) const noexcept; // C++2a
150 constexpr bool ends_with(charT c) const noexcept; // C++2a
151 constexpr bool ends_with(const charT* s) const; // C++2a
592 bool ends_with(basic_string_view __s) const _NOEXCEPT
596 bool ends_with(value_type __c) const _NOEXCEPT
600 bool ends_with(const value_type* __s) const _NOEXCEPT
601 { return ends_with(basic_string_view(__s)); }
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/Terminal/
DStandard_Suite.py518 class ends_with(aetools.NComparison): class
577 'ends' : ends_with,
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/SystemEvents/
DStandard_Suite.py518 class ends_with(aetools.NComparison): class
577 'ends' : ends_with,
/external/libchrome/base/
Dvlog.cc98 if (module.ends_with(kInlSuffix)) in GetModule()
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dstring_ref.h106 bool ends_with(string_ref x) const { in ends_with() function
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/StdSuites/
DStandard_Suite.py650 class ends_with(aetools.NComparison): class
731 'ends' : ends_with,
/external/webrtc/webrtc/libjingle/xmpp/
Dxmppclient.cc90 rtc::ends_with(server_name.c_str(), in IsTestServer()

12