Home
last modified time | relevance | path

Searched refs:find_first_not_of (Results 1 – 25 of 217) sorted by relevance

123456789

/external/libcxx/test/std/strings/string.view/string.view.find/
Dfind_first_not_of_char_size.pass.cpp25 assert(s.find_first_not_of(c, pos) == x); in test()
34 assert(s.find_first_not_of(c) == x); in test()
78 static_assert (sv1.find_first_not_of( 'q', 0 ) == SV::npos, "" ); in main()
79 static_assert (sv1.find_first_not_of( 'q', 1 ) == SV::npos, "" ); in main()
80 static_assert (sv2.find_first_not_of( 'q', 0 ) == 0, "" ); in main()
81 static_assert (sv2.find_first_not_of( 'q', 1 ) == 1, "" ); in main()
82 static_assert (sv2.find_first_not_of( 'q', 5 ) == SV::npos, "" ); in main()
Dfind_first_not_of_pointer_size.pass.cpp25 assert(s.find_first_not_of(str, pos) == x); in test()
34 assert(s.find_first_not_of(str) == x); in test()
159 static_assert (sv1.find_first_not_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_first_not_of( "irkhs", 0) == SV::npos, "" ); in main()
161 static_assert (sv2.find_first_not_of( "", 0) == 0, "" ); in main()
162 static_assert (sv2.find_first_not_of( "gfsrt", 0) == 0, "" ); in main()
163 static_assert (sv2.find_first_not_of( "lecar", 0) == 1, "" ); in main()
Dfind_first_not_of_pointer_size_size.pass.cpp25 assert(s.find_first_not_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_first_not_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_first_not_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_first_not_of( "", 0, 0) == 0, "" ); in main()
389 static_assert (sv2.find_first_not_of( "gfsrt", 0, 5) == 0, "" ); in main()
390 static_assert (sv2.find_first_not_of( "lecar", 0, 5) == 1, "" ); in main()
/external/llvm-project/libcxx/test/std/strings/string.view/string.view.find/
Dfind_first_not_of_char_size.pass.cpp24 assert(s.find_first_not_of(c, pos) == x); in test()
33 assert(s.find_first_not_of(c) == x); in test()
77 static_assert (sv1.find_first_not_of( 'q', 0 ) == SV::npos, "" ); in main()
78 static_assert (sv1.find_first_not_of( 'q', 1 ) == SV::npos, "" ); in main()
79 static_assert (sv2.find_first_not_of( 'q', 0 ) == 0, "" ); in main()
80 static_assert (sv2.find_first_not_of( 'q', 1 ) == 1, "" ); in main()
81 static_assert (sv2.find_first_not_of( 'q', 5 ) == SV::npos, "" ); in main()
Dfind_first_not_of_pointer_size.pass.cpp24 assert(s.find_first_not_of(str, pos) == x); in test()
33 assert(s.find_first_not_of(str) == x); in test()
158 static_assert (sv1.find_first_not_of( "", 0) == SV::npos, "" ); in main()
159 static_assert (sv1.find_first_not_of( "irkhs", 0) == SV::npos, "" ); in main()
160 static_assert (sv2.find_first_not_of( "", 0) == 0, "" ); in main()
161 static_assert (sv2.find_first_not_of( "gfsrt", 0) == 0, "" ); in main()
162 static_assert (sv2.find_first_not_of( "lecar", 0) == 1, "" ); in main()
Dfind_first_not_of_pointer_size_size.pass.cpp24 assert(s.find_first_not_of(str, pos, n) == x); in test()
385 static_assert (sv1.find_first_not_of( "", 0, 0) == SV::npos, "" ); in main()
386 static_assert (sv1.find_first_not_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
387 static_assert (sv2.find_first_not_of( "", 0, 0) == 0, "" ); in main()
388 static_assert (sv2.find_first_not_of( "gfsrt", 0, 5) == 0, "" ); in main()
389 static_assert (sv2.find_first_not_of( "lecar", 0, 5) == 1, "" ); in main()
/external/openscreen/third_party/abseil/src/absl/strings/
Dstring_view_test.cc534 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
535 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
536 EXPECT_EQ(b.find_first_not_of(a), absl::string_view::npos); in TEST()
537 EXPECT_EQ(c.find_first_not_of(a), absl::string_view::npos); in TEST()
538 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
539 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
540 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
541 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
543 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
544 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstring_view_test.cc533 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
534 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
535 EXPECT_EQ(b.find_first_not_of(a), absl::string_view::npos); in TEST()
536 EXPECT_EQ(c.find_first_not_of(a), absl::string_view::npos); in TEST()
537 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
538 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
539 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
540 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
542 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
543 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
[all …]
Dstring_view.cc141 string_view::size_type string_view::find_first_not_of(string_view s, in find_first_not_of() function in absl::string_view
146 if (s.length_ == 1) return find_first_not_of(s.ptr_[0], pos); in find_first_not_of()
156 string_view::size_type string_view::find_first_not_of(char c, in find_first_not_of() function in absl::string_view
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstring_view_test.cc534 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
535 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
536 EXPECT_EQ(b.find_first_not_of(a), absl::string_view::npos); in TEST()
537 EXPECT_EQ(c.find_first_not_of(a), absl::string_view::npos); in TEST()
538 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
539 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
540 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
541 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
543 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
544 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
[all …]
/external/abseil-cpp/absl/strings/
Dstring_view_test.cc533 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
534 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
535 EXPECT_EQ(b.find_first_not_of(a), absl::string_view::npos); in TEST()
536 EXPECT_EQ(c.find_first_not_of(a), absl::string_view::npos); in TEST()
537 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
538 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
539 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
540 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
542 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
543 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
[all …]
Dstring_view.cc141 string_view::size_type string_view::find_first_not_of(string_view s, in find_first_not_of() function in absl::string_view
146 if (s.length_ == 1) return find_first_not_of(s.ptr_[0], pos); in find_first_not_of()
156 string_view::size_type string_view::find_first_not_of(char c, in find_first_not_of() function in absl::string_view
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstring_view_test.cc534 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
535 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
536 EXPECT_EQ(b.find_first_not_of(a), absl::string_view::npos); in TEST()
537 EXPECT_EQ(c.find_first_not_of(a), absl::string_view::npos); in TEST()
538 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
539 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
540 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
541 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
543 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
544 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
[all …]
Dstring_view.cc141 string_view::size_type string_view::find_first_not_of(string_view s, in find_first_not_of() function in absl::string_view
146 if (s.length_ == 1) return find_first_not_of(s.ptr_[0], pos); in find_first_not_of()
156 string_view::size_type string_view::find_first_not_of(char c, in find_first_not_of() function in absl::string_view
/external/libchrome/base/strings/
Dstring_piece_unittest.cc359 ASSERT_EQ(a.find_first_not_of(b), 3U); in TYPED_TEST()
360 ASSERT_EQ(a.find_first_not_of(c), 0U); in TYPED_TEST()
361 ASSERT_EQ(b.find_first_not_of(a), Piece::npos); in TYPED_TEST()
362 ASSERT_EQ(c.find_first_not_of(a), Piece::npos); in TYPED_TEST()
363 ASSERT_EQ(f.find_first_not_of(a), 0U); in TYPED_TEST()
364 ASSERT_EQ(a.find_first_not_of(f), 0U); in TYPED_TEST()
365 ASSERT_EQ(a.find_first_not_of(d), 0U); in TYPED_TEST()
366 ASSERT_EQ(a.find_first_not_of(e), 0U); in TYPED_TEST()
368 ASSERT_EQ(d.find_first_not_of(a), Piece::npos); in TYPED_TEST()
369 ASSERT_EQ(e.find_first_not_of(a), Piece::npos); in TYPED_TEST()
[all …]
Dstring_piece.h97 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
100 BASE_EXPORT size_t find_first_not_of(const StringPiece16& self,
103 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
106 BASE_EXPORT size_t find_first_not_of(const StringPiece16& self,
339 size_type find_first_not_of(const BasicStringPiece& s,
341 return internal::find_first_not_of(*this, s, pos);
343 size_type find_first_not_of(value_type c, size_type pos = 0) const {
344 return internal::find_first_not_of(*this, c, pos);
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc437 EXPECT_EQ(a.find_first_not_of(b), 3); in TEST()
438 EXPECT_EQ(a.find_first_not_of(c), 0); in TEST()
439 EXPECT_EQ(b.find_first_not_of(a), StringPiece::npos); in TEST()
440 EXPECT_EQ(c.find_first_not_of(a), StringPiece::npos); in TEST()
441 EXPECT_EQ(f.find_first_not_of(a), 0); in TEST()
442 EXPECT_EQ(a.find_first_not_of(f), 0); in TEST()
443 EXPECT_EQ(a.find_first_not_of(d), 0); in TEST()
444 EXPECT_EQ(a.find_first_not_of(e), 0); in TEST()
446 EXPECT_EQ(d.find_first_not_of(a), StringPiece::npos); in TEST()
447 EXPECT_EQ(e.find_first_not_of(a), StringPiece::npos); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dperformance-faster-string-find.cpp14 int find_first_not_of(const Char *) const;
28 int find_first_not_of(const Char *) const;
73 Str.find_first_not_of("a"); in StringFind()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSmallString.h190 size_t find_first_not_of(char C, size_t From = 0) const {
191 return str().find_first_not_of(C, From);
198 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
199 return str().find_first_not_of(Chars, From);
/external/llvm/include/llvm/ADT/
DSmallString.h191 size_t find_first_not_of(char C, size_t From = 0) const {
192 return str().find_first_not_of(C, From);
199 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
200 return str().find_first_not_of(Chars, From);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallString.h191 size_t find_first_not_of(char C, size_t From = 0) const {
192 return str().find_first_not_of(C, From);
199 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
200 return str().find_first_not_of(Chars, From);
/external/llvm-project/llvm/tools/llvm-mca/
DCodeRegionGenerator.cpp82 unsigned Position = Comment.find_first_not_of(" \t"); in HandleComment()
90 Position = Comment.find_first_not_of(" \t"); in HandleComment()
102 Position = Comment.find_first_not_of(" \t"); in HandleComment()
/external/llvm-project/llvm/include/llvm/ADT/
DSmallString.h216 size_t find_first_not_of(char C, size_t From = 0) const {
217 return str().find_first_not_of(C, From);
224 size_t find_first_not_of(StringRef Chars, size_t From = 0) const {
225 return str().find_first_not_of(Chars, From);
/external/parameter-framework/upstream/parameter/
DRuleParser.cpp154 if ((delimiter = _strApplicationRule.find_first_not_of(" ", _uiCurrentPos)) != string::npos) { in iterate()
246 if ((delimiter = _strApplicationRule.find_first_not_of(" ", _uiCurrentPos)) != string::npos) { in next()
/external/llvm/unittests/ADT/
DSmallStringTest.cpp140 EXPECT_EQ(1U, theString.find_first_not_of('h')); in TEST_F()
141 EXPECT_EQ(4U, theString.find_first_not_of("hel")); in TEST_F()
142 EXPECT_EQ(StringRef::npos, theString.find_first_not_of("hello")); in TEST_F()

123456789