Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 21 of 21) sorted by relevance

/freebsd-13.1/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c49 _nc_strstr(const char *haystack, const char *needle) in NCURSES_EXPORT()
51 size_t len1 = strlen(haystack); in NCURSES_EXPORT()
56 if (!strncmp(haystack, needle, len2)) { in NCURSES_EXPORT()
57 result = (char *) haystack; in NCURSES_EXPORT()
60 haystack++; in NCURSES_EXPORT()
/freebsd-13.1/contrib/wpa/src/utils/
H A Dos_internal.c478 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument
481 while (*haystack) { in os_strstr()
482 if (os_strncmp(haystack, needle, len) == 0) in os_strstr()
483 return (char *) haystack; in os_strstr()
484 haystack++; in os_strstr()
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument
H A Dos.h451 char * os_strstr(const char *haystack, const char *needle);
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp107 static char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument
109 size_t len1 = internal_strlen(haystack); in internal_strstr()
114 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
115 return const_cast<char *>(haystack) + pos; in internal_strstr()
H A DFuzzerUtil.h66 const void *SearchMemory(const void *haystack, size_t haystacklen,
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cpp218 char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument
220 uptr len1 = internal_strlen(haystack); in internal_strstr()
224 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
225 return const_cast<char *>(haystack) + pos; in internal_strstr()
H A Dsanitizer_libc.h49 char *internal_strstr(const char *haystack, const char *needle);
/freebsd-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dompt-specific.h69 #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle) argument
H A Dompt-general.cpp45 #define OMPT_STR_MATCH(haystack, needle) (!strcasecmp(haystack, needle)) argument
/freebsd-13.1/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_check.c196 const char *haystack, const char *needle, const char *original) in is_based() argument
210 if (strstr(haystack, needle)) /* based on haystack entirely */ in is_based()
219 for (p = haystack; *p; p++) in is_based()
/freebsd-13.1/contrib/googletest/googletest/src/
H A Dgtest.cc1608 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1609 return needle == haystack; in IsSubstringPred()
1611 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1615 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1616 return needle == haystack; in IsSubstringPred()
1618 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1624 const StringType& haystack) { in IsSubstringPred() argument
1625 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1658 const char* needle, const char* haystack) { in IsSubstring() argument
1664 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument
[all …]
/freebsd-13.1/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1663 const char* needle, const char* haystack);
1666 const wchar_t* needle, const wchar_t* haystack);
1669 const char* needle, const char* haystack);
1672 const wchar_t* needle, const wchar_t* haystack);
1675 const ::std::string& needle, const ::std::string& haystack);
1678 const ::std::string& needle, const ::std::string& haystack);
1683 const ::std::wstring& needle, const ::std::wstring& haystack);
1686 const ::std::wstring& needle, const ::std::wstring& haystack);
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dcmdline.c845 const char **haystack, in most_similar() argument
860 svn_string_t *hay = svn_string_create(haystack[i], scratch_pool); in most_similar()
870 max_similar = haystack[i]; in most_similar()
880 const char **haystack, in string_in_array() argument
888 if (!strcmp(needle, haystack[i])) in string_in_array()
893 next_of_kin = most_similar(needle, haystack, haystack_len, scratch_pool); in string_in_array()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1845 SANITIZER_INTERFACE_ATTRIBUTE char *__dfsw_strstr(char *haystack, char *needle, in __dfsw_strstr() argument
1849 char *ret = strstr(haystack, needle); in __dfsw_strstr()
1853 size_t len = ret ? ret + strlen(needle) - haystack : strlen(haystack) + 1; in __dfsw_strstr()
1855 dfsan_union(dfsan_read_label(haystack, len), in __dfsw_strstr()
1863 SANITIZER_INTERFACE_ATTRIBUTE char *__dfso_strstr(char *haystack, char *needle, in __dfso_strstr() argument
1871 __dfsw_strstr(haystack, needle, haystack_label, needle_label, ret_label); in __dfso_strstr()
1877 size_t len = ret ? ret + needle_len - haystack : strlen(haystack) + 1; in __dfso_strstr()
1878 dfsan_origin o = dfsan_read_origin_of_first_taint(haystack, len); in __dfso_strstr()
/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Dp2p_supplicant_sd.c535 const u8 *haystack = (const u8 *) adv_data->svc_info; in find_p2ps_substr() local
542 if (!haystack) in find_p2ps_substr()
549 if (os_memcmp(haystack + i, needle, needle_len) == 0) in find_p2ps_substr()
/freebsd-13.1/usr.bin/top/
H A Dmachine.c226 static int find_uid(uid_t needle, int *haystack);
230 find_uid(uid_t needle, int *haystack) in find_uid() argument
235 if ((uid_t)haystack[i] == needle) in find_uid()
/freebsd-13.1/contrib/bmake/
H A Dvar.c1476 Substring_Find(Substring haystack, Substring needle) in Substring_Find() argument
1480 len = Substring_Length(haystack); in Substring_Find()
1483 if (memcmp(haystack.start + i, needle.start, needleLen) == 0) in Substring_Find()
1484 return haystack.start + i; in Substring_Find()
/freebsd-13.1/contrib/ncurses/progs/
H A Dtic.c553 matches(char **needle, const char *haystack) in matches() argument
561 if (_nc_name_match(haystack, needle[n], "|")) { in matches()
/freebsd-13.1/share/dict/
H A Dweb2a27865 haystack thorn
H A Dweb282953 haystack