Searched refs:needle (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-12-stable/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c47 _nc_strstr(const char *haystack, const char *needle) argument
50 size_t len2 = strlen(needle);
54 if (!strncmp(haystack, needle, len2)) {
/freebsd-12-stable/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_check.c192 * substring and needle would be too simple for a password with the
196 const char *haystack, const char *needle, const char *original)
210 if (strstr(haystack, needle)) /* based on haystack entirely */
215 length = strlen(needle);
220 if (*p == needle[i] && !strncmp(p, &needle[i], j)) {
255 const char *needle, const char *original)
266 if (is_based(params, unified, needle, original)) {
195 is_based(passwdqc_params_t *params, const char *haystack, const char *needle, const char *original) argument
254 is_word_based(passwdqc_params_t *params, const char *needle, const char *original) argument
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/
H A Dompt-specific.h69 #define OMPT_STR_MATCH(haystack, needle) __kmp_str_match(haystack, 0, needle)
H A Dompt-general.cpp45 #define OMPT_STR_MATCH(haystack, needle) (!strcasecmp(haystack, needle))
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_internal.h90 // loaded image containing `needle' and then enumerates all global metadata
94 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
H A Dasan_mac.cpp106 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
107 // Find the Mach-O header for the image containing the needle
109 int err = dladdr(needle, &info);
H A Dasan_fuchsia.cpp50 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_linux.cpp137 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_rtems.cpp49 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_win.cpp190 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.h49 char *internal_strstr(const char *haystack, const char *needle);
H A Dsanitizer_libc.cpp218 char *internal_strstr(const char *haystack, const char *needle) { argument
221 uptr len2 = internal_strlen(needle);
224 if (internal_memcmp(haystack + pos, needle, len2) == 0)
/freebsd-12-stable/contrib/wpa/src/utils/
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c472 char * os_strstr(const char *haystack, const char *needle) argument
474 size_t len = os_strlen(needle);
476 if (os_strncmp(haystack, needle, len) == 0)
H A Dos.h448 * @needle: Needle to search from haystack
451 char * os_strstr(const char *haystack, const char *needle);
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.h64 const void *needle, size_t needlelen);
/freebsd-12-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_warc.c452 const char *needle, const size_t needlesize)
455 const char *const eon = needle + needlesize;
464 * a 0-sized needle is defined to be found anywhere in haystack
469 } else if ((hay = memchr(hay, *needle, haysize)) == NULL) {
474 /* First characters of haystack and needle are the same now. Both are
476 * of characters values of needle together with the sum of the first
478 for (hp = hay + 1U, np = needle + 1U, hsum = *hay, nsum = *hay, eqp = 1U;
484 /* haystack is smaller than needle, :O */
501 if (hsum == nsum && memcmp(cand, needle, needlesize - 1U) == 0) {
450 xmemmem(const char *hay, const size_t haysize, const char *needle, const size_t needlesize) argument
/freebsd-12-stable/contrib/googletest/googletest/src/
H A Dgtest.cc1603 // This group of overloaded functions return true iff needle is a
1607 bool IsSubstringPred(const char* needle, const char* haystack) { argument
1608 if (needle == NULL || haystack == NULL)
1609 return needle == haystack;
1611 return strstr(haystack, needle) != NULL;
1614 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument
1615 if (needle == NULL || haystack == NULL)
1616 return needle == haystack;
1618 return wcsstr(haystack, needle) != NULL;
1623 bool IsSubstringPred(const StringType& needle, argument
1633 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument
1656 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1662 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1668 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1674 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1680 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1686 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1693 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
1699 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
[all...]
/freebsd-12-stable/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1655 // themselves. They check whether needle is a substring of haystack
1659 // The {needle,haystack}_expr arguments are the stringified
1663 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, cons
[all...]
/freebsd-12-stable/contrib/wpa/src/drivers/
H A Ddriver_macsec_linux.c1067 struct rtnl_link *needle; local
1070 needle = rtnl_link_macsec_alloc();
1071 if (!needle)
1074 rtnl_link_set_link(needle, parent);
1075 rtnl_link_macsec_set_sci(needle, sci);
1077 match = nl_cache_find(cache, (struct nl_object *) needle);
1078 rtnl_link_put(needle);
/freebsd-12-stable/contrib/gcclibs/libmudflap/
H A Dmf-hooks2.c382 WRAPPER2(char *, strstr, const char *haystack, const char *needle) argument
388 needle_sz = strlen (needle);
390 MF_VALIDATE_EXTENT(needle, CLAMPADD(needle_sz, 1), __MF_CHECK_READ, "strstr needle");
391 return strstr (haystack, needle);
398 const void *needle, size_t needlelen)
402 MF_VALIDATE_EXTENT(needle, needlelen, __MF_CHECK_READ, "memmem needle");
403 return memmem (haystack, haystacklen, needle, needlelen);
396 WRAPPER2(void *, memmem, const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) argument
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp795 SANITIZER_INTERFACE_ATTRIBUTE char *__dfsw_strstr(char *haystack, char *needle, argument
799 char *ret = strstr(haystack, needle);
803 size_t len = ret ? ret + strlen(needle) - haystack : strlen(haystack) + 1;
806 dfsan_union(dfsan_read_label(needle, strlen(needle) + 1),
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/
H A Dcmdline.c879 string_in_array(const char *needle, argument
888 if (!strcmp(needle, haystack[i]))
893 next_of_kin = most_similar(needle, haystack, haystack_len, scratch_pool);
898 needle, next_of_kin);
902 needle);
/freebsd-12-stable/contrib/ncurses/progs/
H A Dtic.c541 matches(char **needle, const char *haystack) argument
542 /* does entry in needle list match |-separated field in haystack? */
547 if (needle != 0) {
548 for (n = 0; needle[n] != 0; n++) {
549 if (_nc_name_match(haystack, needle[n], "|")) {
/freebsd-12-stable/contrib/wpa/wpa_supplicant/
H A Dp2p_supplicant_sd.c533 const u8 *needle, size_t needle_len)
539 if (!needle || !needle_len)
549 if (os_memcmp(haystack + i, needle, needle_len) == 0)
532 find_p2ps_substr(struct p2ps_advertisement *adv_data, const u8 *needle, size_t needle_len) argument

Completed in 316 milliseconds

12