Home
last modified time | relevance | path

Searched refs:find_first_of (Results 1 – 25 of 144) sorted by relevance

123456

/external/libcxx/test/std/strings/string.view/string.view.find/
Dfind_first_of_char_size.pass.cpp25 assert(s.find_first_of(c, pos) == x); in test()
34 assert(s.find_first_of(c) == x); in test()
76 static_assert (sv1.find_first_of( 'e', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv1.find_first_of( 'e', 1 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_first_of( 'q', 0 ) == SV::npos, "" ); in main()
79 static_assert (sv2.find_first_of( 'e', 1 ) == 4, "" ); in main()
80 static_assert (sv2.find_first_of( 'e', 5 ) == SV::npos, "" ); in main()
Dfind_first_of_pointer_size.pass.cpp25 assert(s.find_first_of(str, pos) == x); in test()
34 assert(s.find_first_of(str) == x); in test()
159 static_assert (sv1.find_first_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_first_of( "irkhs", 0) == SV::npos, "" ); in main()
161 static_assert (sv2.find_first_of( "", 0) == SV::npos, "" ); in main()
162 static_assert (sv2.find_first_of( "gfsrt", 0) == SV::npos, "" ); in main()
163 static_assert (sv2.find_first_of( "lecar", 0) == 0, "" ); in main()
Dfind_first_of_pointer_size_size.pass.cpp25 assert(s.find_first_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_first_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_first_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_first_of( "", 0, 0) == SV::npos, "" ); in main()
389 static_assert (sv2.find_first_of( "gfsrt", 0, 5) == SV::npos, "" ); in main()
390 static_assert (sv2.find_first_of( "lecar", 0, 5) == 0, "" ); in main()
/external/libcxx/test/std/experimental/string.view/string.view.find/
Dfind_first_of_char_size.pass.cpp25 assert(s.find_first_of(c, pos) == x); in test()
34 assert(s.find_first_of(c) == x); in test()
76 static_assert (sv1.find_first_of( 'e', 0 ) == SV::npos, "" ); in main()
77 static_assert (sv1.find_first_of( 'e', 1 ) == SV::npos, "" ); in main()
78 static_assert (sv2.find_first_of( 'q', 0 ) == SV::npos, "" ); in main()
79 static_assert (sv2.find_first_of( 'e', 1 ) == 4, "" ); in main()
80 static_assert (sv2.find_first_of( 'e', 5 ) == SV::npos, "" ); in main()
Dfind_first_of_pointer_size.pass.cpp25 assert(s.find_first_of(str, pos) == x); in test()
34 assert(s.find_first_of(str) == x); in test()
159 static_assert (sv1.find_first_of( "", 0) == SV::npos, "" ); in main()
160 static_assert (sv1.find_first_of( "irkhs", 0) == SV::npos, "" ); in main()
161 static_assert (sv2.find_first_of( "", 0) == SV::npos, "" ); in main()
162 static_assert (sv2.find_first_of( "gfsrt", 0) == SV::npos, "" ); in main()
163 static_assert (sv2.find_first_of( "lecar", 0) == 0, "" ); in main()
Dfind_first_of_pointer_size_size.pass.cpp25 assert(s.find_first_of(str, pos, n) == x); in test()
386 static_assert (sv1.find_first_of( "", 0, 0) == SV::npos, "" ); in main()
387 static_assert (sv1.find_first_of( "irkhs", 0, 5) == SV::npos, "" ); in main()
388 static_assert (sv2.find_first_of( "", 0, 0) == SV::npos, "" ); in main()
389 static_assert (sv2.find_first_of( "gfsrt", 0, 5) == SV::npos, "" ); in main()
390 static_assert (sv2.find_first_of( "lecar", 0, 5) == 0, "" ); in main()
/external/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/
Dfind_first_of.pass.cpp28 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
34 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
39 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
44 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
Dfind_first_of_pred.pass.cpp30 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
37 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
43 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
49 assert(std::find_first_of(input_iterator<const int*>(ia), in main()
/external/libchrome/base/strings/
Dstring_piece_unittest.cc332 ASSERT_EQ(3U, Piece(one_two_three_four).find_first_of(comma_colon)); in TYPED_TEST()
333 ASSERT_EQ(a.find_first_of(b), 0U); in TYPED_TEST()
334 ASSERT_EQ(a.find_first_of(b, 0), 0U); in TYPED_TEST()
335 ASSERT_EQ(a.find_first_of(b, 1), 1U); in TYPED_TEST()
336 ASSERT_EQ(a.find_first_of(b, 2), 2U); in TYPED_TEST()
337 ASSERT_EQ(a.find_first_of(b, 3), Piece::npos); in TYPED_TEST()
338 ASSERT_EQ(a.find_first_of(c), 23U); in TYPED_TEST()
339 ASSERT_EQ(a.find_first_of(c, 23), 23U); in TYPED_TEST()
340 ASSERT_EQ(a.find_first_of(c, 24), 24U); in TYPED_TEST()
341 ASSERT_EQ(a.find_first_of(c, 25), 25U); in TYPED_TEST()
[all …]
Dstring_piece.h92 BASE_EXPORT size_t find_first_of(const StringPiece& self,
95 BASE_EXPORT size_t find_first_of(const StringPiece16& self,
317 size_type find_first_of(const BasicStringPiece& s,
319 return internal::find_first_of(*this, s, pos);
321 size_type find_first_of(value_type c, size_type pos = 0) const {
Dstring_split.cc58 return piece.find_first_of(one_of, pos); in FindFirstOf()
61 return piece.find_first_of(one_of, pos); in FindFirstOf()
113 size_t end_key_pos = input.find_first_of(delimiter); in AppendStringKeyValue()
/external/protobuf/src/google/protobuf/stubs/
Dstringpiece_unittest.cc413 EXPECT_EQ(a.find_first_of(b), 0); in TEST()
414 EXPECT_EQ(a.find_first_of(b, 0), 0); in TEST()
415 EXPECT_EQ(a.find_first_of(b, 1), 1); in TEST()
416 EXPECT_EQ(a.find_first_of(b, 2), 2); in TEST()
417 EXPECT_EQ(a.find_first_of(b, 3), StringPiece::npos); in TEST()
418 EXPECT_EQ(a.find_first_of(c), 23); in TEST()
419 EXPECT_EQ(a.find_first_of(c, 23), 23); in TEST()
420 EXPECT_EQ(a.find_first_of(c, 24), 24); in TEST()
421 EXPECT_EQ(a.find_first_of(c, 25), 25); in TEST()
422 EXPECT_EQ(a.find_first_of(c, 26), StringPiece::npos); in TEST()
[all …]
/external/libchrome/base/
Dbase64url.cc53 if (input.find_first_of(kBase64Chars) != std::string::npos) in Base64UrlDecode()
58 input.find_first_of(kBase64UrlSafeChars) != std::string::npos; in Base64UrlDecode()
71 if (input.find_first_of(kPaddingChar) != std::string::npos) in Base64UrlDecode()
/external/llvm/include/llvm/ADT/
DSmallString.h177 size_t find_first_of(char C, size_t From = 0) const {
178 return str().find_first_of(C, From);
185 size_t find_first_of(StringRef Chars, size_t From = 0) const {
186 return str().find_first_of(Chars, From);
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSmallString.h177 size_t find_first_of(char C, size_t From = 0) const {
178 return str().find_first_of(C, From);
185 size_t find_first_of(StringRef Chars, size_t From = 0) const {
186 return str().find_first_of(Chars, From);
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTString.h398 size_t find_first_of(char _Ch, size_t _Off = 0) const;
406 size_t find_first_of(const char* _Ptr, size_t _Off = 0) const;
415 size_t find_first_of(const char* _Ptr, size_t _Off, size_t _Count) const;
433 size_t find_first_of(const CPVRTString& _Str, size_t _Off = 0) const;
/external/mesa3d/src/gallium/state_trackers/clover/llvm/
Dutil.hpp93 cpu(s.begin(), s.begin() + s.find_first_of("-")), in target()
94 triple(s.begin() + s.find_first_of("-") + 1, s.end()) {} in target()
/external/parameter-framework/upstream/parameter/
DRuleParser.cpp162 ((delimiter = _strApplicationRule.find_first_of(_acDelimiters[_eStatus], _uiCurrentPos)) != in iterate()
252 if ((delimiter = _strApplicationRule.find_first_of("{} ,", _uiCurrentPos)) == string::npos) { in next()
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc86 size_t end = hex_csv.find_first_of(","); in StringToGlyphId()
91 end = hex_csv.find_first_of(",", start); in StringToGlyphId()
/external/webrtc/webrtc/base/
Dpathutils.cc188 if(basename.find_first_of(FOLDER_DELIMS) != std::string::npos) { in SetBasename()
200 if (extension.find_first_of(FOLDER_DELIMS) != std::string::npos || in SetExtension()
201 extension.find_first_of(EXT_DELIM, 1) != std::string::npos) { in SetExtension()
/external/llvm/unittests/ADT/
DSmallStringTest.cpp136 EXPECT_EQ(2U, theString.find_first_of('l')); in TEST_F()
137 EXPECT_EQ(1U, theString.find_first_of("el")); in TEST_F()
138 EXPECT_EQ(StringRef::npos, theString.find_first_of("xyz")); in TEST_F()
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
Dchar_size.pass.cpp24 assert(s.find_first_of(c, pos) == x); in test()
33 assert(s.find_first_of(c) == x); in test()
/external/libcxx/include/
Dstring_view130 constexpr size_type find_first_of(basic_string_view s, size_type pos = 0) const noexcept;
131 constexpr size_type find_first_of(charT c, size_type pos = 0) const noexcept;
132 constexpr size_type find_first_of(const charT* s, size_type pos, size_type n) const;
133 constexpr size_type find_first_of(const charT* s, size_type pos = 0) const;
447 // find_first_of
449 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
451 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_of(): received n…
457 size_type find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT
461 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
463 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_of(): received nullptr");
[all …]
/external/llvm/lib/Passes/
DPassBuilder.cpp475 size_t End = PipelineText.find_first_of(",)"); in parseLoopPassPipeline()
528 size_t End = PipelineText.find_first_of(",)"); in parseFunctionPassPipeline()
582 size_t End = PipelineText.find_first_of(",)"); in parseCGSCCPassPipeline()
663 size_t End = PipelineText.find_first_of(",)"); in parseModulePassPipeline()
695 PipelineText.substr(0, PipelineText.find_first_of(",)")); in parsePassPipeline()
/external/libcxx/include/experimental/
Dstring_view140 constexpr size_type find_first_of(basic_string_view s, size_type pos = 0) const noexcept;
141 constexpr size_type find_first_of(charT c, size_type pos = 0) const noexcept;
142 constexpr size_type find_first_of(const charT* s, size_type pos, size_type n) const;
143 constexpr size_type find_first_of(const charT* s, size_type pos = 0) const;
477 // find_first_of
479 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT
481 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_of(): received n…
487 size_type find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT
491 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const
493 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_of(): received nullptr");
[all …]

123456