Home
last modified time | relevance | path

Searched refs:starts_with (Results 1 – 25 of 35) sorted by relevance

12

/external/libcxx/test/std/strings/string.view/string.view.template/
Dstarts_with.ptr.pass.cpp34 LIBCPP_ASSERT_NOEXCEPT(sv0.starts_with("")); in main()
36 assert ( sv0.starts_with("")); in main()
37 assert (!sv0.starts_with("a")); in main()
39 assert ( sv1.starts_with("")); in main()
40 assert ( sv1.starts_with("a")); in main()
41 assert (!sv1.starts_with("ab")); in main()
42 assert (!sv1.starts_with("abc")); in main()
43 assert (!sv1.starts_with("abcd")); in main()
44 assert (!sv1.starts_with("abcde")); in main()
45 assert (!sv1.starts_with("def")); in main()
[all …]
Dstarts_with.string_view.pass.cpp34 ASSERT_NOEXCEPT(sv0.starts_with(sv0)); in main()
36 assert ( sv0.starts_with(sv0)); in main()
37 assert (!sv0.starts_with(sv1)); in main()
39 assert ( sv1.starts_with(sv0)); in main()
40 assert ( sv1.starts_with(sv1)); in main()
41 assert (!sv1.starts_with(sv2)); in main()
42 assert (!sv1.starts_with(sv3)); in main()
43 assert (!sv1.starts_with(sv4)); in main()
44 assert (!sv1.starts_with(sv5)); in main()
45 assert (!sv1.starts_with(svNot)); in main()
[all …]
Dstarts_with.char.pass.cpp28 ASSERT_NOEXCEPT(sv1.starts_with('e')); in main()
30 assert (!sv1.starts_with('a')); in main()
31 assert (!sv1.starts_with('x')); in main()
32 assert ( sv2.starts_with('a')); in main()
33 assert (!sv2.starts_with('x')); in main()
41 static_assert (!sv1.starts_with('a'), "" ); in main()
42 static_assert (!sv1.starts_with('x'), "" ); in main()
43 static_assert ( sv2.starts_with('a'), "" ); in main()
44 static_assert (!sv2.starts_with('x'), "" ); in main()
/external/libcxx/test/std/strings/basic.string/string.starts_with/
Dstarts_with.ptr.pass.cpp33 LIBCPP_ASSERT_NOEXCEPT(s0.starts_with("")); in main()
35 assert ( s0.starts_with("")); in main()
36 assert (!s0.starts_with("a")); in main()
38 assert ( s1.starts_with("")); in main()
39 assert ( s1.starts_with("a")); in main()
40 assert (!s1.starts_with("ab")); in main()
41 assert (!s1.starts_with("abc")); in main()
42 assert (!s1.starts_with("abcd")); in main()
43 assert (!s1.starts_with("abcde")); in main()
44 assert (!s1.starts_with("def")); in main()
[all …]
Dstarts_with.string_view.pass.cpp43 ASSERT_NOEXCEPT(s0.starts_with(sv0)); in main()
45 assert ( s0.starts_with(sv0)); in main()
46 assert (!s0.starts_with(sv1)); in main()
48 assert ( s1.starts_with(sv0)); in main()
49 assert ( s1.starts_with(sv1)); in main()
50 assert (!s1.starts_with(sv2)); in main()
51 assert (!s1.starts_with(sv3)); in main()
52 assert (!s1.starts_with(sv4)); in main()
53 assert (!s1.starts_with(sv5)); in main()
54 assert (!s1.starts_with(svNot)); in main()
[all …]
Dstarts_with.char.pass.cpp27 ASSERT_NOEXCEPT(s1.starts_with('e')); in main()
29 assert (!s1.starts_with('a')); in main()
30 assert (!s1.starts_with('x')); in main()
31 assert ( s2.starts_with('a')); in main()
32 assert (!s2.starts_with('x')); in main()
/external/webrtc/webrtc/base/
Dstringutils_unittest.cc90 EXPECT_TRUE(starts_with("foobar", "foo")); in TEST()
91 EXPECT_TRUE(starts_with("foobar", "foobar")); in TEST()
92 EXPECT_TRUE(starts_with("foobar", "")); in TEST()
93 EXPECT_TRUE(starts_with("", "")); in TEST()
94 EXPECT_FALSE(starts_with("foobar", "bar")); in TEST()
95 EXPECT_FALSE(starts_with("foobar", "foobarbaz")); in TEST()
96 EXPECT_FALSE(starts_with("", "f")); in TEST()
Dstringutils.cc104 bool starts_with(const char *s1, const char *s2) { in starts_with() function
Dstringutils.h308 bool starts_with(const char *s1, const char *s2);
/external/libchrome/base/strings/
Dstring_piece_unittest.cc560 ASSERT_TRUE(a.starts_with(a)); in TEST()
561 ASSERT_TRUE(a.starts_with("foo")); in TEST()
562 ASSERT_TRUE(a.starts_with(e)); in TEST()
563 ASSERT_TRUE(b.starts_with(s1)); in TEST()
564 ASSERT_TRUE(b.starts_with(b)); in TEST()
565 ASSERT_TRUE(b.starts_with(e)); in TEST()
566 ASSERT_TRUE(e.starts_with("")); in TEST()
567 ASSERT_TRUE(!a.starts_with(b)); in TEST()
568 ASSERT_TRUE(!b.starts_with(a)); in TEST()
569 ASSERT_TRUE(!e.starts_with(a)); in TEST()
[all …]
/external/grpc-grpc/test/cpp/util/
Dstring_ref_test.cc134 EXPECT_TRUE(s1.starts_with(s1)); in TEST_F()
135 EXPECT_FALSE(s1.starts_with(s2)); in TEST_F()
136 EXPECT_FALSE(s2.starts_with(s1)); in TEST_F()
137 EXPECT_FALSE(s1.starts_with(s3)); in TEST_F()
138 EXPECT_TRUE(s3.starts_with(s1)); in TEST_F()
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc607 EXPECT_TRUE(a.starts_with(a)); in TEST()
608 EXPECT_TRUE(a.starts_with("foo")); in TEST()
609 EXPECT_TRUE(a.starts_with(e)); in TEST()
610 EXPECT_TRUE(b.starts_with(s1)); in TEST()
611 EXPECT_TRUE(b.starts_with(b)); in TEST()
612 EXPECT_TRUE(b.starts_with(e)); in TEST()
613 EXPECT_TRUE(e.starts_with("")); in TEST()
614 EXPECT_TRUE(!a.starts_with(b)); in TEST()
615 EXPECT_TRUE(!b.starts_with(a)); in TEST()
616 EXPECT_TRUE(!e.starts_with(a)); in TEST()
[all …]
Dstringpiece.cc74 if (starts_with(x)) { in Consume()
/external/python/cpython3/Lib/test/
Dtest_module.py262 starts_with = "<module 'unittest' from '"
264 self.assertEqual(r[:len(starts_with)], starts_with,
265 '{!r} does not start with {!r}'.format(r, starts_with))
/external/catch2/misc/
Dcoverage-helper.cpp53 bool starts_with(std::string const& str, std::string const& pref) { in starts_with() function
58 assert(starts_with(arg, logfile_prefix) && "Attempting to parse incorrect arg!"); in parse_log_file_arg()
/external/webrtc/talk/media/devices/
Dyuvframescapturer.h61 return rtc::starts_with(device.id.c_str(), kYuvFrameDeviceName); in IsYuvFramesCapturerDevice()
Dfilevideocapturer.h88 return rtc::starts_with(device.id.c_str(), kVideoFileDevicePrefix); in IsFileVideoCapturerDevice()
/external/libcxx/include/
Dstring_view146 constexpr bool starts_with(basic_string_view s) const noexcept; // C++2a
147 constexpr bool starts_with(charT c) const noexcept; // C++2a
148 constexpr bool starts_with(const charT* s) const; // C++2a
580 bool starts_with(basic_string_view __s) const _NOEXCEPT
584 bool starts_with(value_type __c) const _NOEXCEPT
588 bool starts_with(const value_type* __s) const _NOEXCEPT
589 { return starts_with(basic_string_view(__s)); }
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/Terminal/
DStandard_Suite.py520 class starts_with(aetools.NComparison): class
575 'bgwt' : starts_with,
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/SystemEvents/
DStandard_Suite.py520 class starts_with(aetools.NComparison): class
575 'bgwt' : starts_with,
/external/pcre/pcrecpp/include/
Dpcre_stringpiece.h151 bool starts_with(const StringPiece& x) const { in starts_with() function
/external/protobuf/src/google/protobuf/util/internal/
Dfield_mask_utility.cc61 if (segment.starts_with("[\"")) { in AppendPathSegmentToPrefix()
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dstring_ref.h102 bool starts_with(string_ref x) const { in starts_with() function
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/StdSuites/
DStandard_Suite.py652 class starts_with(aetools.NComparison): class
729 'bgwt' : starts_with,
/external/libchrome/base/test/
Dscoped_feature_list.cc39 if (feature_name.starts_with("*")) in GetFeatureName()

12