Home
last modified time | relevance | path

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

123

/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
/external/v8/tools/clang/plugins/
DChromeClassTester.cpp28 bool ends_with(const std::string& one, const std::string& two) { in ends_with() function
69 if (ends_with(base_name, "Matcher")) in CheckTag()
119 if (ends_with(filename, ".pb.h")) { in InBannedDirectory()
222 if (ends_with(filename, ".cc") || ends_with(filename, ".cpp") || in InImplementationFile()
223 ends_with(filename, ".mm")) { in InImplementationFile()
/external/python/cpython3/Lib/test/
Dtest_module.py212 ends_with = "__init__.py'>"
215 self.assertEqual(r[-len(ends_with):], ends_with,
216 '{!r} does not end with {!r}'.format(r, ends_with))
/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 …]
/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 …]
/external/tensorflow/tensorflow/examples/label_image/
Dmain.cc140 if (tensorflow::StringPiece(file_name).ends_with(".png")) { in ReadTensorFromImageFile()
143 } else if (tensorflow::StringPiece(file_name).ends_with(".gif")) { in ReadTensorFromImageFile()
148 } else if (tensorflow::StringPiece(file_name).ends_with(".bmp")) { in ReadTensorFromImageFile()
/external/tensorflow/tensorflow/stream_executor/lib/
Dstr_util.h32 if (str.ends_with(suffix)) { in StripSuffixString()
/external/tensorflow/tensorflow/examples/multibox_detector/
Dmain.cc87 if (tensorflow::StringPiece(file_name).ends_with(".png")) { in ReadTensorFromImageFile()
90 } else if (tensorflow::StringPiece(file_name).ends_with(".gif")) { in ReadTensorFromImageFile()
134 CHECK(tensorflow::StringPiece(file_path).ends_with(".png")) in SaveImage()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dtransform_graph_test.cc117 if (name.ends_with("expect_removed")) { in TestConstantFolding()
120 if (name.ends_with("expect_remains")) { in TestConstantFolding()
/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/libchrome/base/
Dos_compat_android.cc126 if (!base::StringPiece(path, path_len).ends_with(kSuffix)) { in mkdtemp()
Dvlog.cc98 if (module.ends_with(kInlSuffix)) in GetModule()
/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
589 bool ends_with(basic_string_view __s) const _NOEXCEPT
593 bool ends_with(value_type __c) const _NOEXCEPT
597 bool ends_with(const value_type* __s) const _NOEXCEPT
598 { 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/tensorflow/tensorflow/compiler/xla/
Dutil.cc247 if (sp.ends_with("B") || // Ends in 'B', ignoring case in HumanReadableNumOps()
248 sp.ends_with("b")) { in HumanReadableNumOps()
/external/tensorflow/tensorflow/compiler/aot/
Dtfcompile_main.cc58 if (StringPiece(fname).ends_with(".pbtxt")) { in ReadProtoFile()
/external/tensorflow/tensorflow/core/framework/
Dtypes.cc117 if (sp.ends_with("_ref")) { in DataTypeFromString()

123