| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | strstr_test.cpp | 14 const char *needle = "a"; in TEST() local 20 const char *needle = ""; in TEST() local 26 const char *needle = "12345"; in TEST() local 32 const char *needle = ""; in TEST() local 46 const char *needle = "12345"; in TEST() local 52 const char *needle = "345"; in TEST() local 64 const char *needle = "12"; in TEST() local 70 const char *needle = "def"; in TEST() local 76 const char *needle = "ghi"; in TEST() local 89 const char *needle = "lap"; in TEST() local [all …]
|
| /llvm-project-15.0.7/libc/fuzzing/string/ |
| H A D | strstr_fuzz.cpp | 55 const char *needle = reinterpret_cast<const char *>(container); in LLVMFuzzerTestOneInput() local 57 const char *result = __llvm_libc::strstr(haystack, needle); in LLVMFuzzerTestOneInput() 61 const size_t needle_size = __llvm_libc::strlen(needle); in LLVMFuzzerTestOneInput() 66 if (simple_memcmp(needle, result, needle_size) != 0) in LLVMFuzzerTestOneInput() 72 if (simple_memcmp(needle, haystack_ptr, needle_size) == 0) in LLVMFuzzerTestOneInput() 79 if (simple_memcmp(needle, haystack + i, needle_size) == 0) in LLVMFuzzerTestOneInput()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.nonmodifying/ |
| H A D | count.pass.cpp | 26 operator()(Policy&& exec, Iterator first, Iterator last, T needle) in operator ()() 28 auto expected = std::count(first, last, needle); in operator ()() 29 auto result = std::count(exec, first, last, needle); in operator ()() 62 test(T needle, Predicate pred, Convert convert) in test() argument 71 invoke_on_all_policies(test_count(), in.begin(), in.end(), needle); in test() 74 invoke_on_all_policies(test_count(), in.cbegin(), in.cend(), needle); in test()
|
| /llvm-project-15.0.7/libc/src/string/ |
| H A D | strstr.cpp | 18 LLVM_LIBC_FUNCTION(char *, strstr, (const char *haystack, const char *needle)) { 21 for (j = 0; haystack[i + j] && haystack[i + j] == needle[j]; ++j) 23 if (!needle[j])
|
| H A D | strstr.h | 14 char *strstr(const char *haystack, const char *needle);
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | taint-generic.c | 670 void *memmem(const void *haystack, size_t haystacklen, const void *needle, size_t needlelen); 671 void testMemmem(const void *needle, size_t needlelen) { in testMemmem() argument 675 char *result = memmem(haystack, 9, needle, needlelen); in testMemmem() 679 char *strstr(const char *haystack, const char *needle); 680 void testStrstr(const char *needle) { in testStrstr() argument 684 char *result = strstr(haystack, needle); in testStrstr() 688 char *strcasestr(const char *haystack, const char *needle); 689 void testStrcasestr(const char *needle) { in testStrcasestr() argument 693 char *result = strcasestr(haystack, needle); in testStrcasestr()
|
| /llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/impl/ |
| H A D | msgpack.cpp | 181 bool message_is_string(byte_range bytes, const char *needle) { in message_is_string() argument 183 size_t needleN = strlen(needle); in message_is_string() 187 if (memcmp(needle, str, N) == 0) { in message_is_string()
|
| H A D | system.cpp | 229 int map_lookup_array(msgpack::byte_range message, const char *needle, in map_lookup_array() argument 245 if (msgpack::message_is_string(key, needle)) { in map_lookup_array() 257 int map_lookup_string(msgpack::byte_range message, const char *needle, in map_lookup_string() argument 271 if (msgpack::message_is_string(key, needle)) { in map_lookup_string() 278 int map_lookup_uint64_t(msgpack::byte_range message, const char *needle, in map_lookup_uint64_t() argument 283 if (msgpack::message_is_string(key, needle)) { in map_lookup_uint64_t()
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerInterceptors.cpp | 107 static char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument 110 size_t len2 = internal_strlen(needle); in internal_strstr() 114 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
|
| H A D | FuzzerUtil.h | 67 const void *needle, size_t needlelen);
|
| /llvm-project-15.0.7/openmp/runtime/src/ |
| H A D | ompt-specific.h | 69 #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle) argument
|
| H A D | ompt-general.cpp | 45 #define OMPT_STR_MATCH(haystack, needle) (!strcasecmp(haystack, needle)) argument
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_libc.cpp | 218 char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument 221 uptr len2 = internal_strlen(needle); in internal_strstr() 224 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
|
| H A D | sanitizer_libc.h | 49 char *internal_strstr(const char *haystack, const char *needle);
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | loop-search.ll | 7 define zeroext i1 @search(i32 %needle, ptr nocapture readonly %haystack, i32 %count) { 49 %cmp1 = icmp eq i32 %1, %needle
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest.cc | 1565 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1567 return strstr(haystack, needle) != nullptr; in IsSubstringPred() 1571 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1573 return wcsstr(haystack, needle) != nullptr; in IsSubstringPred() 1578 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument 1580 return haystack.find(needle) != StringType::npos; in IsSubstringPred() 1595 const bool is_wide_string = sizeof(needle[0]) > 1; in IsSubstringImpl() 1613 const char* needle, const char* haystack) { in IsSubstring() argument 1619 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument 1625 const char* needle, const char* haystack) { in IsNotSubstring() argument [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/ |
| H A D | gtest.h | 1693 const char* needle, const char* haystack); 1696 const wchar_t* needle, const wchar_t* haystack); 1699 const char* needle, const char* haystack); 1702 const wchar_t* needle, const wchar_t* haystack); 1705 const ::std::string& needle, const ::std::string& haystack); 1708 const ::std::string& needle, const ::std::string& haystack); 1713 const ::std::wstring& needle, const ::std::wstring& haystack); 1716 const ::std::wstring& needle, const ::std::wstring& haystack);
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_mac.cpp | 68 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument 71 int err = dladdr(needle, &info); in AsanApplyToGlobals()
|
| H A D | asan_internal.h | 104 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
|
| H A D | asan_linux.cpp | 114 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
| H A D | asan_fuchsia.cpp | 52 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/ |
| H A D | faster-string-find.rst | 6 Optimize calls to ``std::string::find()`` and friends when the needle passed is
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | sve-fold-loadext-and-splat-vector.ll | 8 define <vscale x 2 x i64> @fold_loadext_and(ptr %ptr, i32 %needle, <vscale x 2 x i64> %b) #0 {
|
| /llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/ |
| H A D | flags-from-poison.ll | 95 define void @test-add-scope-invariant(i32* %input, i32 %needle) { 124 %exitcond = icmp eq i32 %of_interest, %needle 133 define void @test-add-scope-bound(i32* %input, i32 %needle) { 163 %exitcond = icmp eq i32 %of_interest, %needle 194 %exitcond = icmp eq i32 %i.next, %needle 226 %exitcond = icmp eq i32 %i.next, %needle 258 %exitcond = icmp eq i32 %i.next, %needle 266 define void @test-add-scope-bound-unkn-header(i32* %input, i32 %needle) { 293 %exitcond = icmp eq i32 %i.next, %needle 328 %exitcond = icmp eq i32 %i.next, %needle [all …]
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/completion/ |
| H A D | TestCompletion.py | 119 def completions_contain_str(self, input, needle): argument 125 if needle in match:
|