| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.find.first.of/ |
| H A D | find_first_of.pass.cpp | 31 …return (std::find_first_of(FI(std::begin(ic)), FI(std::end(ic)), FI(std::begin(ia)), FI(std::en… in test_constexpr() 32 …&& (std::find_first_of(FI(std::begin(ic)), FI(std::end(ic)), FI(std::begin(ib)), FI(std::end(ib)))… in test_constexpr() 33 …&& (std::find_first_of(BI(std::begin(ic)), BI(std::end(ic)), BI(std::begin(ia)), BI(std::end(ia)))… in test_constexpr() 34 …&& (std::find_first_of(BI(std::begin(ic)), BI(std::end(ic)), BI(std::begin(ib)), BI(std::end(ib)))… in test_constexpr() 35 …&& (std::find_first_of(RI(std::begin(ic)), RI(std::end(ic)), RI(std::begin(ia)), RI(std::end(ia)))… in test_constexpr() 36 …&& (std::find_first_of(RI(std::begin(ic)), RI(std::end(ic)), RI(std::begin(ib)), RI(std::end(ib)))… in test_constexpr() 47 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 53 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 58 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 63 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main()
|
| H A D | find_first_of_pred.pass.cpp | 33 …return (std::find_first_of(FI(std::begin(ic)), FI(std::end(ic)), FI(std::begin(ia)), FI(std::en… in test_constexpr() 34 …&& (std::find_first_of(FI(std::begin(ic)), FI(std::end(ic)), FI(std::begin(ib)), FI(std::end(ib)),… in test_constexpr() 35 …&& (std::find_first_of(BI(std::begin(ic)), BI(std::end(ic)), BI(std::begin(ia)), BI(std::end(ia)),… in test_constexpr() 36 …&& (std::find_first_of(BI(std::begin(ic)), BI(std::end(ic)), BI(std::begin(ib)), BI(std::end(ib)),… in test_constexpr() 37 …&& (std::find_first_of(RI(std::begin(ic)), RI(std::end(ic)), RI(std::begin(ia)), RI(std::end(ia)),… in test_constexpr() 38 …&& (std::find_first_of(RI(std::begin(ic)), RI(std::end(ic)), RI(std::begin(ib)), RI(std::end(ib)),… in test_constexpr() 49 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 56 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 62 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main() 68 assert(std::find_first_of(cpp17_input_iterator<const int*>(ia), in main()
|
| H A D | ranges.find_first_of.pass.cpp | 39 std::ranges::find_first_of(iter1, sent1, iter2, sent2); 56 std::ranges::find_first_of(range1, range2); 89 std::same_as<Iter1> decltype(auto) ret = std::ranges::find_first_of(range1, range2); in test() 137 std::ranges::find_first_of(std::array {1}, std::array {1}); in test() 144 auto ret = std::ranges::find_first_of(std::begin(a), std::end(a), in test() 150 auto ret = std::ranges::find_first_of(a, b, std::ranges::greater{}); in test() 159 auto ret = std::ranges::find_first_of(std::begin(a), std::end(a), in test() 186 auto ret = std::ranges::find_first_of(std::begin(a), std::end(a), in test() 202 auto ret = std::ranges::find_first_of(a, std::end(a), b, std::end(b)); in test() 206 auto ret = std::ranges::find_first_of(a, b); in test() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/strings/string.view/string.view.find/ |
| H A D | find_first_of_char_size.pass.cpp | 26 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(c, pos)); in test() 27 assert(s.find_first_of(c, pos) == x); in test() 36 assert(s.find_first_of(c) == x); in test() 78 static_assert (sv1.find_first_of( 'e', 0 ) == SV::npos, "" ); in main() 79 static_assert (sv1.find_first_of( 'e', 1 ) == SV::npos, "" ); in main() 80 static_assert (sv2.find_first_of( 'q', 0 ) == SV::npos, "" ); in main() 81 static_assert (sv2.find_first_of( 'e', 1 ) == 4, "" ); in main() 82 static_assert (sv2.find_first_of( 'e', 5 ) == SV::npos, "" ); in main()
|
| H A D | find_first_of_pointer_size.pass.cpp | 26 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str, pos)); in test() 27 assert(s.find_first_of(str, pos) == x); in test() 36 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str)); in test() 37 assert(s.find_first_of(str) == x); in test() 162 static_assert (sv1.find_first_of( "", 0) == SV::npos, "" ); in main() 163 static_assert (sv1.find_first_of( "irkhs", 0) == SV::npos, "" ); in main() 164 static_assert (sv2.find_first_of( "", 0) == SV::npos, "" ); in main() 165 static_assert (sv2.find_first_of( "gfsrt", 0) == SV::npos, "" ); in main() 166 static_assert (sv2.find_first_of( "lecar", 0) == 0, "" ); in main()
|
| H A D | find_first_of_string_view_size.pass.cpp | 24 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str, pos)); in test() 25 assert(s.find_first_of(str, pos) == x); in test() 34 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str)); in test() 35 assert(s.find_first_of(str) == x); in test()
|
| H A D | find_first_of_pointer_size_size.pass.cpp | 26 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str, pos, n)); in test() 27 assert(s.find_first_of(str, pos, n) == x); in test() 388 static_assert (sv1.find_first_of( "", 0, 0) == SV::npos, "" ); in main() 389 static_assert (sv1.find_first_of( "irkhs", 0, 5) == SV::npos, "" ); in main() 390 static_assert (sv2.find_first_of( "", 0, 0) == SV::npos, "" ); in main() 391 static_assert (sv2.find_first_of( "gfsrt", 0, 5) == SV::npos, "" ); in main() 392 static_assert (sv2.find_first_of( "lecar", 0, 5) == 0, "" ); in main()
|
| /llvm-project-15.0.7/libc/test/src/__support/CPP/ |
| H A D | stringview_test.cpp | 191 ASSERT_TRUE(Tmp.find_first_of('a') == 0); in TEST() 192 ASSERT_TRUE(Tmp.find_first_of('d') == StringView::npos); in TEST() 193 ASSERT_TRUE(Tmp.find_first_of('b') == 1); in TEST() 194 ASSERT_TRUE(Tmp.find_first_of('a', 0) == 0); in TEST() 195 ASSERT_TRUE(Tmp.find_first_of('b', 1) == 1); in TEST() 196 ASSERT_TRUE(Tmp.find_first_of('a', 1) == 3); in TEST() 197 ASSERT_TRUE(Tmp.find_first_of('a', 42) == StringView::npos); in TEST() 198 ASSERT_FALSE(Tmp.find_first_of('c') == 1); in TEST() 199 ASSERT_FALSE(Tmp.find_first_of('c', 0) == 1); in TEST() 200 ASSERT_FALSE(Tmp.find_first_of('c', 1) == 1); in TEST()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.nonmodifying/ |
| H A D | find_first_of.pass.cpp | 44 Iterator1 expected = find_first_of(b, e, bsub, esub, pred); in operator ()() 45 Iterator1 actual = find_first_of(exec, b, e, bsub, esub, pred); in operator ()() 48 expected = find_first_of(b, e, bsub, esub); in operator ()() 49 actual = find_first_of(exec, b, e, bsub, esub); in operator ()() 96 …find_first_of(exec, first_iter, first_iter, second_iter, second_iter, non_const(std::equal_to<T>()… in operator ()()
|
| /llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/ |
| H A D | char_size.pass.cpp | 24 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(c, pos)); in test() 25 assert(s.find_first_of(c, pos) == x); in test() 34 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(c)); in test() 35 assert(s.find_first_of(c) == x); in test()
|
| H A D | string_size.pass.cpp | 23 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str, pos)); in test() 24 assert(s.find_first_of(str, pos) == x); in test() 33 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str)); in test() 34 assert(s.find_first_of(str) == x); in test() 162 assert(s.find_first_of({"abc", 1}) == std::string::npos); in test()
|
| H A D | pointer_size.pass.cpp | 24 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str, pos)); in test() 25 assert(s.find_first_of(str, pos) == x); in test() 34 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(str)); in test() 35 assert(s.find_first_of(str) == x); in test()
|
| H A D | string_view_size.pass.cpp | 23 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(sv, pos)); in test() 24 assert(s.find_first_of(sv, pos) == x); in test() 33 LIBCPP_ASSERT_NOEXCEPT(s.find_first_of(sv)); in test() 34 assert(s.find_first_of(sv) == x); in test()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/ |
| H A D | faster-string-find.cpp | 13 int find_first_of(const Char *) const; 27 int find_first_of(const Char *) const; 70 Str.find_first_of("a"); in StringFind()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | SmallString.h | 170 size_t find_first_of(char C, size_t From = 0) const { 171 return str().find_first_of(C, From); 178 size_t find_first_of(StringRef Chars, size_t From = 0) const { 179 return str().find_first_of(Chars, From);
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FormatVariadic.cpp | 97 std::size_t BO = Fmt.find_first_of('{'); in splitLiteralAndReplacement() 113 std::size_t BC = Fmt.find_first_of('}'); in splitLiteralAndReplacement() 124 std::size_t BO2 = Fmt.find_first_of('{', 1); in splitLiteralAndReplacement()
|
| /llvm-project-15.0.7/libcxx/include/__algorithm/ |
| H A D | find_first_of.h | 38 find_first_of(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, in find_first_of() function 44 …EXT inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator1 find_first_of( in find_first_of() function
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | PropertyDeclarationCheck.cpp | 46 Index = Name.find_first_of('_') + 1; in generateFixItHint() 89 size_t Start = PropertyName.find_first_of('_'); in prefixedPropertyNameValid()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | mismatched-iterator.cpp | 48 std::find_first_of(V1.cbegin(), V1.cend(), V2.cbegin(), V2.cend()); // no-warning in good_find_first_of() 104 …std::find_first_of(V1.cbegin(), V2.cend(), V2.cbegin(), V2.cend()); // expected-warning{{Iterators… in bad_find_first_of() 105 …std::find_first_of(V1.cbegin(), V1.cend(), V2.cbegin(), V1.cend()); // expected-warning{{Iterators… in bad_find_first_of()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | SmallStringTest.cpp | 168 EXPECT_EQ(2U, theString.find_first_of('l')); in TEST_F() 169 EXPECT_EQ(1U, theString.find_first_of("el")); in TEST_F() 170 EXPECT_EQ(StringRef::npos, theString.find_first_of("xyz")); in TEST_F()
|
| /llvm-project-15.0.7/llvm/tools/llvm-mc/ |
| H A D | Disassembler.cpp | 92 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 109 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString()
|
| /llvm-project-15.0.7/llvm/tools/llvm-ml/ |
| H A D | Disassembler.cpp | 88 Str = Str.substr(Str.find_first_of('\n')); in SkipToToken() 103 size_t Next = Str.find_first_of(" \t\n\r,#[]"); in ByteArrayFromString()
|
| /llvm-project-15.0.7/llvm/tools/vfabi-demangle-fuzzer/ |
| H A D | vfabi-demangler-fuzzer.cpp | 30 if (!MangledName.empty() && MangledName.find_first_of(0) == StringRef::npos) in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/bolt/include/bolt/Utils/ |
| H A D | NameResolver.h | 40 return Name.substr(0, Name.find_first_of(Sep)); in restore()
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | string_view | 141 constexpr size_type find_first_of(basic_string_view s, size_type pos = 0) const noexcept; 142 constexpr size_type find_first_of(charT c, size_type pos = 0) const noexcept; 144 …constexpr size_type find_first_of(const charT* s, size_type pos = 0) const noexcept; // noexcept a… 563 // find_first_of 565 size_type find_first_of(basic_string_view __s, size_type __pos = 0) const _NOEXCEPT 567 …_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find_first_of(): received n… 573 size_type find_first_of(_CharT __c, size_type __pos = 0) const _NOEXCEPT 577 size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const _NOEXCEPT 579 … _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find_first_of(): received nullptr"); 585 size_type find_first_of(const _CharT* __s, size_type __pos=0) const _NOEXCEPT [all …]
|