Home
last modified time | relevance | path

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

12345

/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/libcxx/test/std/experimental/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/libchrome/base/strings/
Dstring_piece_unittest.cc357 ASSERT_EQ(a.find_first_not_of(b), 3U); in TYPED_TEST()
358 ASSERT_EQ(a.find_first_not_of(c), 0U); in TYPED_TEST()
359 ASSERT_EQ(b.find_first_not_of(a), Piece::npos); in TYPED_TEST()
360 ASSERT_EQ(c.find_first_not_of(a), Piece::npos); in TYPED_TEST()
361 ASSERT_EQ(f.find_first_not_of(a), 0U); in TYPED_TEST()
362 ASSERT_EQ(a.find_first_not_of(f), 0U); in TYPED_TEST()
363 ASSERT_EQ(a.find_first_not_of(d), 0U); in TYPED_TEST()
364 ASSERT_EQ(a.find_first_not_of(e), 0U); in TYPED_TEST()
366 ASSERT_EQ(d.find_first_not_of(a), Piece::npos); in TYPED_TEST()
367 ASSERT_EQ(e.find_first_not_of(a), Piece::npos); in TYPED_TEST()
[all …]
Dstring_piece.h99 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
102 BASE_EXPORT size_t find_first_not_of(const StringPiece16& self,
105 BASE_EXPORT size_t find_first_not_of(const StringPiece& self,
108 BASE_EXPORT size_t find_first_not_of(const StringPiece16& self,
326 size_type find_first_not_of(const BasicStringPiece& s,
328 return internal::find_first_not_of(*this, s, pos);
330 size_type find_first_not_of(value_type c, size_type pos = 0) const {
331 return internal::find_first_not_of(*this, c, pos);
Dstring_piece.cc232 size_t find_first_not_of(const StringPiece& self, in find_first_not_of() function
243 return find_first_not_of(self, s.data()[0], pos); in find_first_not_of()
256 BASE_EXPORT size_t find_first_not_of(const StringPiece16& self, in find_first_not_of() function
291 size_t find_first_not_of(const StringPiece& self, in find_first_not_of() function
297 size_t find_first_not_of(const StringPiece16& self, in find_first_not_of() function
/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 …]
Dstringpiece.cc180 stringpiece_ssize_type StringPiece::find_first_not_of(StringPiece s, in find_first_not_of() function in google::protobuf::StringPiece
185 if (s.length_ == 1) return find_first_not_of(s.ptr_[0], pos); in find_first_not_of()
197 stringpiece_ssize_type StringPiece::find_first_not_of(char c, in find_first_not_of() function in google::protobuf::StringPiece
/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);
DStringRef.h310 size_t find_first_not_of(char C, size_t From = 0) const;
316 size_t find_first_not_of(StringRef Chars, size_t From = 0) const;
553 return drop_front(std::min(Length, find_first_not_of(Char))); in ltrim()
559 return drop_front(std::min(Length, find_first_not_of(Chars)));
/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/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTString.h365 size_t find_first_not_of(char _Ch, size_t _Off = 0) const;
373 size_t find_first_not_of(const char* _Ptr, size_t _Off = 0) const;
382 size_t find_first_not_of(const char* _Ptr, size_t _Off, size_t _Count) const;
390 size_t find_first_not_of(const CPVRTString& _Str, size_t _Off = 0) const;
/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/swiftshader/third_party/LLVM/utils/TableGen/
DCodeGenInstruction.cpp201 std::string::size_type start = CStr.find_first_not_of(" \t"); in ParseConstraint()
205 wpos = Name.find_first_not_of(" \t"); in ParseConstraint()
222 start = CStr.find_first_not_of(" \t"); in ParseConstraint()
233 wpos = Name.find_first_not_of(" \t"); in ParseConstraint()
257 bidx = CStr.find_first_not_of(delims); in ParseConstraints()
264 bidx = CStr.find_first_not_of(delims, eidx); in ParseConstraints()
/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()
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/
Dchar_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()
Dpointer_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()
/external/libcxx/include/
Dstring_view138 constexpr size_type find_first_not_of(basic_string_view s, size_type pos = 0) const noexcept;
139 constexpr size_type find_first_not_of(charT c, size_type pos = 0) const noexcept;
140 constexpr size_type find_first_not_of(const charT* s, size_type pos, size_type n) const;
141 constexpr size_type find_first_not_of(const charT* s, size_type pos = 0) const;
505 // find_first_not_of
507 size_type find_first_not_of(basic_string_view __s, size_type __pos=0) const _NOEXCEPT
509 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_not_of(): receiv…
515 size_type find_first_not_of(_CharT __c, size_type __pos=0) const _NOEXCEPT
522 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
524 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_not_of(): received nullptr");
[all …]
/external/libcxx/include/experimental/
Dstring_view148 constexpr size_type find_first_not_of(basic_string_view s, size_type pos = 0) const noexcept;
149 constexpr size_type find_first_not_of(charT c, size_type pos = 0) const noexcept;
150 constexpr size_type find_first_not_of(const charT* s, size_type pos, size_type n) const;
151 constexpr size_type find_first_not_of(const charT* s, size_type pos = 0) const;
535 // find_first_not_of
537 size_type find_first_not_of(basic_string_view __s, size_type __pos=0) const _NOEXCEPT
539 …BCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_not_of(): received …
545 size_type find_first_not_of(_CharT __c, size_type __pos=0) const _NOEXCEPT
552 size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const
554 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_not_of(): received nullptr");
[all …]
/external/llvm/utils/TableGen/
DCodeGenInstruction.cpp207 std::string::size_type start = CStr.find_first_not_of(" \t"); in ParseConstraint()
211 wpos = Name.find_first_not_of(" \t"); in ParseConstraint()
228 start = CStr.find_first_not_of(" \t"); in ParseConstraint()
239 wpos = Name.find_first_not_of(" \t"); in ParseConstraint()
265 bidx = CStr.find_first_not_of(delims); in ParseConstraints()
272 bidx = CStr.find_first_not_of(delims, eidx); in ParseConstraints()
/external/swiftshader/third_party/LLVM/unittests/ADT/
DStringRefTest.cpp260 EXPECT_EQ(1U, Str.find_first_not_of('h')); in TEST()
261 EXPECT_EQ(4U, Str.find_first_not_of("hel")); in TEST()
262 EXPECT_EQ(StringRef::npos, Str.find_first_not_of("hello")); in TEST()
/external/webrtc/webrtc/p2p/client/
Dhttpportallocator.cc28 size_t first = str.find_first_not_of(" \t\r\n"); in Trim()
45 start_of_line = string.find_first_not_of("\r\n", end_of_line); in ParseMap()

12345