Home
last modified time | relevance | path

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

12

/third_party/boost/libs/algorithm/string/test/
Dpredicate_test.cpp42 BOOST_CHECK( ends_with( str1, string("321") ) ); in predicate_test()
43 BOOST_CHECK( !ends_with( str1, string("123") ) ); in predicate_test()
70 BOOST_CHECK( ends_with( vec1, string("321") ) ); in predicate_test()
76 BOOST_CHECK( !ends_with( str2, string("abcd") ) ); in predicate_test()
82 BOOST_CHECK( ends_with( str2, string("abc") ) ); in predicate_test()
88 BOOST_CHECK( ends_with( str2, string("") ) ); in predicate_test()
94 BOOST_CHECK( ends_with( "123xxx321", "321" ) ); in predicate_test()
/third_party/skia/tests/
DSkStringViewTest.cpp39 REPORTER_ASSERT(r, !empty.ends_with('x')); in DEF_TEST()
41 REPORTER_ASSERT(r, !empty.ends_with("x")); in DEF_TEST()
43 REPORTER_ASSERT(r, empty.ends_with("")); in DEF_TEST()
53 REPORTER_ASSERT(r, xyz.ends_with('z')); in DEF_TEST()
54 REPORTER_ASSERT(r, !xyz.ends_with('y')); in DEF_TEST()
57 REPORTER_ASSERT(r, xyz.ends_with("")); in DEF_TEST()
59 REPORTER_ASSERT(r, xyz.ends_with("z")); in DEF_TEST()
61 REPORTER_ASSERT(r, !xyz.ends_with("az")); in DEF_TEST()
63 REPORTER_ASSERT(r, xyz.ends_with("yz")); in DEF_TEST()
65 REPORTER_ASSERT(r, xyz.ends_with("xyz")); in DEF_TEST()
[all …]
/third_party/skia/src/sksl/
DSkSLMain.cpp274 if (inputPath.ends_with(".vert")) { in processCommand()
276 } else if (inputPath.ends_with(".frag") || inputPath.ends_with(".sksl")) { in processCommand()
278 } else if (inputPath.ends_with(".rtb")) { in processCommand()
280 } else if (inputPath.ends_with(".rtcf")) { in processCommand()
282 } else if (inputPath.ends_with(".rts")) { in processCommand()
346 if (outputPath.ends_with(".spirv")) { in processCommand()
351 } else if (outputPath.ends_with(".asm.frag") || outputPath.ends_with(".asm.vert")) { in processCommand()
371 } else if (outputPath.ends_with(".glsl")) { in processCommand()
376 } else if (outputPath.ends_with(".metal")) { in processCommand()
381 } else if (outputPath.ends_with(".skvm")) { in processCommand()
[all …]
/third_party/boost/libs/utility/test/
Dstring_ref_test2.cpp19 void ends_with ( const char *arg ) { in ends_with() function
26 BOOST_TEST ( sr.ends_with ( p )); in ends_with()
31 BOOST_TEST ( sr.ends_with ( sr2 )); in ends_with()
37 BOOST_TEST ( sr.ends_with ( sr2 )); in ends_with()
44 BOOST_TEST ( sr2.ends_with ( ch )); in ends_with()
45 BOOST_TEST ( !sr2.ends_with ( ++ch )); in ends_with()
46 BOOST_TEST ( sr2.ends_with ( string_ref ())); in ends_with()
313 ends_with ( *p ); in main()
Dstring_view_test2.cpp23 void ends_with ( const char *arg ) { in ends_with() function
30 BOOST_TEST ( sr.ends_with ( p )); in ends_with()
35 BOOST_TEST ( sr.ends_with ( sr2 )); in ends_with()
41 BOOST_TEST ( sr.ends_with ( sr2 )); in ends_with()
48 BOOST_TEST ( sr2.ends_with ( ch )); in ends_with()
49 BOOST_TEST ( !sr2.ends_with ( ++ch )); in ends_with()
50 BOOST_TEST ( sr2.ends_with ( string_view())); in ends_with()
400 ends_with ( *p ); in main()
/third_party/icu/tools/unicodetools/com/ibm/rbm/
DRBReporterScanner.java233 String ends_with; field in FileRule
236 FileRule(String name, String starts_with, String ends_with, String contains) { in FileRule() argument
239 this.ends_with = ends_with; in FileRule()
246 if (ends_with != null && ends_with.length() > 0 && !(source.endsWith(ends_with))) accept = false; in applyRule()
/third_party/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()
/third_party/boost/boost/log/expressions/predicates/
Dends_with.hpp88 ends_with(attribute_actor< T, FallbackPolicyT, TagT, ActorT > const& attr, SubstringT const& substr… in ends_with() function
101 ends_with(attribute_keyword< DescriptorT, ActorT > const&, SubstringT const& substring) in ends_with() function
114 ends_with(attribute_name const& name, SubstringT const& substring) in ends_with() function
/third_party/boost/boost/algorithm/string/
Dpredicate.hpp140 inline bool ends_with( in ends_with() function
169 inline bool ends_with( in ends_with() function
173 return ::boost::algorithm::ends_with(Input, Test, is_equal()); in ends_with()
195 return ::boost::algorithm::ends_with(Input, Test, is_iequal(Loc)); in iends_with()
463 using algorithm::ends_with;
/third_party/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 …]
/third_party/boost/libs/static_string/test/
Dconstexpr_tests.hpp236 a.ends_with('a'); in testConstantEvaluation()
237 a.ends_with("a"); in testConstantEvaluation()
422 a.ends_with('a'); in testConstantEvaluation()
423 a.ends_with("a"); in testConstantEvaluation()
594 a.ends_with('a'); in testConstantEvaluation()
595 a.ends_with("a"); in testConstantEvaluation()
/third_party/skia/include/private/
DSkSLString.h40 bool ends_with(const char suffix[]) const { in ends_with() function
41 return skstd::string_view(data(), size()).ends_with(suffix); in ends_with()
/third_party/python/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))
/third_party/boost/libs/log/test/run/
Dfilt_attr.cpp274 filter f = expr::ends_with(expr::attr< std::string >(data::attr3()), "world!"); in BOOST_AUTO_TEST_CASE()
277 f = expr::ends_with(expr::attr< std::string >(data::attr3()), "World!"); in BOOST_AUTO_TEST_CASE()
280 f = expr::ends_with(expr::attr< std::string >(data::attr3()).or_throw(), "Bye"); in BOOST_AUTO_TEST_CASE()
283 f = expr::ends_with(expr::attr< std::string >(data::attr3()).or_throw(), "Hello"); in BOOST_AUTO_TEST_CASE()
286 f = expr::ends_with(expr::attr< std::string >(data::attr2()), "world!"); in BOOST_AUTO_TEST_CASE()
289 f = expr::ends_with(expr::attr< std::string >(data::attr4()), "world!"); in BOOST_AUTO_TEST_CASE()
/third_party/skia/include/core/
DSkStringView.h93 constexpr bool ends_with(string_view s) const { in ends_with() function
100 constexpr bool ends_with(value_type c) const { in ends_with() function
/third_party/boost/libs/algorithm/string/example/
Dpredicate_example.cpp32 (ends_with( str1, string("123") )?"true":"false") << endl; in main()
/third_party/skia/third_party/externals/tint/samples/
Dmain.cc162 bool ends_with(const std::string& input, const std::string& suffix) { in ends_with() function
177 if (ends_with(filename, ".spv")) { in infer_format()
180 if (ends_with(filename, ".spvasm")) { in infer_format()
186 if (ends_with(filename, ".wgsl")) { in infer_format()
192 if (ends_with(filename, ".metal")) { in infer_format()
198 if (ends_with(filename, ".hlsl")) { in infer_format()
/third_party/nghttp2/src/
Dutil.h268 bool ends_with(InputIterator1 first1, InputIterator1 last1, in ends_with() function
276 template <typename T, typename S> bool ends_with(const T &a, const S &b) { in ends_with() function
277 return ends_with(a.begin(), a.end(), b.begin(), b.end()); in ends_with()
282 return ends_with(a.begin(), a.end(), b, b + N - 1); in ends_with_l()
Dutil_test.cc422 util::ends_with(StringRef::from_lit("foo"), StringRef::from_lit("foo"))); in test_util_ends_with()
423 CU_ASSERT(util::ends_with(StringRef::from_lit("foo"), StringRef{})); in test_util_ends_with()
425 util::ends_with(StringRef::from_lit("ofoo"), StringRef::from_lit("foo"))); in test_util_ends_with()
427 !util::ends_with(StringRef::from_lit("ofoo"), StringRef::from_lit("fo"))); in test_util_ends_with()
/third_party/boost/libs/static_string/doc/html/
Dstatic_string_HTML.manifest197 static_string/ref/boost__static_strings__basic_static_string/ends_with.html
198 static_string/ref/boost__static_strings__basic_static_string/ends_with/overload1.html
199 static_string/ref/boost__static_strings__basic_static_string/ends_with/overload2.html
200 static_string/ref/boost__static_strings__basic_static_string/ends_with/overload3.html
/third_party/nghttp2/examples/
Dlibevent-server.c341 static int ends_with(const char *s, const char *sub) { in ends_with() function
525 !ends_with(path, "/..") && !ends_with(path, "/."); in check_path()
/third_party/ffmpeg/libavfilter/
Df_metadata.c130 static int ends_with(MetadataContext *s, const char *value1, const char *value2) in ends_with() function
229 s->compare = ends_with; in init()
/third_party/grpc/include/grpcpp/impl/codegen/
Dstring_ref.h108 bool ends_with(string_ref x) const { in ends_with() function
/third_party/libphonenumber/cpp/src/phonenumbers/base/strings/
Dstring_piece.h119 bool ends_with(const StringPiece& x) const { in ends_with() function
/third_party/boost/libs/utility/doc/
Dstring_ref.qbk150 bool ends_with(charT c) const ;
151 bool ends_with(basic_string_ref x) const ;

12