/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | StringViewExtras.h | 29 std::string_view needle) noexcept { in starts_with() argument 30 if (needle.size() > haystack.size()) in starts_with() 32 haystack.remove_suffix(haystack.size() - needle.size()); in starts_with() 33 return haystack == needle; in starts_with()
|
/freebsd/contrib/pam_modules/pam_passwdqc/ |
H A D | passwdqc_check.c | 196 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() 215 length = strlen(needle); in is_based() 220 if (*p == needle[i] && !strncmp(p, &needle[i], j)) { in is_based() 255 const char *needle, const char *original) in is_word_based() argument 266 if (is_based(params, unified, needle, original)) { in is_word_based()
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | strings.c | 49 _nc_strstr(const char *haystack, const char *needle) in NCURSES_EXPORT() 52 size_t len2 = strlen(needle); in NCURSES_EXPORT() 56 if (!strncmp(haystack, needle, len2)) { in NCURSES_EXPORT()
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | util.c | 747 const char *needle = pathname; in pathnameHas2Dots() local 749 needle = strstr(needle, ".."); in pathnameHas2Dots() 751 if (needle == NULL) { in pathnameHas2Dots() 755 if ((needle == pathname || needle[-1] == PATH_SEP) in pathnameHas2Dots() 756 && (needle[2] == '\0' || needle[2] == PATH_SEP)) { in pathnameHas2Dots() 761 needle++; in pathnameHas2Dots()
|
/freebsd/contrib/llvm-project/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 | 69 const void *needle, size_t needlelen);
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_warc.c | 459 const char *needle, const size_t needlesize) in xmemmem() 462 const char *const eon = needle + needlesize; in xmemmem() 471 * a 0-sized needle is defined to be found anywhere in haystack in xmemmem() 476 } else if ((hay = memchr(hay, *needle, haysize)) == NULL) { in xmemmem() 481 /* First characters of haystack and needle are the same now. Both are in xmemmem() 483 * of characters values of needle together with the sum of the first in xmemmem() 485 for (hp = hay + 1U, np = needle + 1U, hsum = *hay, nsum = *hay, eqp = 1U; in xmemmem() 491 /* haystack is smaller than needle, :O */ in xmemmem() 508 if (hsum == nsum && memcmp(cand, needle, needlesize - 1U) == 0) { in strtoi_lim() 451 xmemmem(const char * hay,const size_t haysize,const char * needle,const size_t needlesize) xmemmem() argument
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_libc.cpp | 243 char *internal_strstr(const char *haystack, const char *needle) { in internal_simple_strtoll() 246 uptr len2 = internal_strlen(needle); in internal_simple_strtoll() 249 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_simple_strtoll() 227 internal_strstr(const char * haystack,const char * needle) internal_strstr() argument
|
H A D | sanitizer_libc.h | 67 char *internal_strstr(const char *haystack, const char *needle);
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | ompt-specific.h | 77 #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
|
/freebsd/contrib/wpa/src/utils/ |
H A D | os_internal.c | 478 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument 480 size_t len = os_strlen(needle); in os_strstr() 482 if (os_strncmp(haystack, needle, len) == 0) in os_strstr()
|
H A D | os_none.c | 232 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument
|
/freebsd/contrib/googletest/googletest/include/gtest/ |
H A D | gtest.h | 1538 const char* needle, 1542 const wchar_t* needle, 1546 const char* needle, 1550 const wchar_t* needle, 1554 const ::std::string& needle, 1558 const ::std::string& needle, 1564 const ::std::wstring& needle, 1568 const ::std::wstring& needle,
|
/freebsd/contrib/googletest/googletest/src/ |
H A D | gtest.cc | 1814 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument 1815 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1817 return strstr(haystack, needle) != nullptr; in IsSubstringPred() 1820 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument 1821 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred() 1823 return wcsstr(haystack, needle) != nullptr; in IsSubstringPred() 1828 bool IsSubstringPred(const StringType& needle, const StringType& haystack) { in IsSubstringPred() argument 1829 return haystack.find(needle) != StringType::npos; in IsSubstringPred() 1840 const StringType& needle, in IsSubstringImpl() argument 1842 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_mac.cpp | 64 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument 67 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 | 100 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
|
H A D | asan_win.cpp | 208 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_macsec_linux.c | 1126 struct rtnl_link *needle; in lookup_sc() local 1129 needle = rtnl_link_macsec_alloc(); in lookup_sc() 1130 if (!needle) in lookup_sc() 1133 rtnl_link_set_link(needle, parent); in lookup_sc() 1134 rtnl_link_macsec_set_sci(needle, sci); in lookup_sc() 1136 rtnl_link_macsec_set_cipher_suite(needle, cs); in lookup_sc() 1138 match = nl_cache_find(cache, (struct nl_object *) needle); in lookup_sc() 1139 rtnl_link_put(needle); in lookup_sc()
|
/freebsd/contrib/sendmail/src/ |
H A D | usersmtp.c | 1547 char *needle; local 1559 if ((needle = iteminlist(rem, list, " ")) == NULL) 1577 memcpy(ret, list, needle - list); 1580 len = strlen(needle) - strlen(rem) - 1; 1584 memcpy(ret + (needle - list), 1585 list + (needle - list) + strlen(rem) + 1, 1589 ret[(needle - list) - 1] = '\0';
|
/freebsd/sys/netinet/libalias/ |
H A D | alias_db.c | 105 struct group_in needle = { in StartPointIn() local 111 grp = SPLAY_FIND(splay_in, &la->linkSplayIn, &needle); in StartPointIn() 783 struct alias_link needle = { in _SearchLinkOut() local 791 lnk = SPLAY_FIND(splay_out, &la->linkSplayOut, &needle); in _SearchLinkOut() 1027 struct alias_link needle = { in FindLinkByInternalEndpoint() local 1033 return SPLAY_FIND(splay_internal_endpoint, &la->linkSplayInternalEndpoint, &needle); in FindLinkByInternalEndpoint()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cpp | 1838 SANITIZER_INTERFACE_ATTRIBUTE char *__dfsw_strstr(char *haystack, char *needle, in __dfsw_strstr() argument 1842 char *ret = strstr(haystack, needle); in __dfsw_strstr() 1846 size_t len = ret ? ret + strlen(needle) - haystack : strlen(haystack) + 1; in __dfsw_strstr() 1849 dfsan_union(dfsan_read_label(needle, strlen(needle) + 1), in __dfsw_strstr() 1856 SANITIZER_INTERFACE_ATTRIBUTE char *__dfso_strstr(char *haystack, char *needle, in __dfso_strstr() argument 1864 __dfsw_strstr(haystack, needle, haystack_label, needle_label, ret_label); in __dfso_strstr() 1869 size_t needle_len = strlen(needle); in __dfso_strstr() 1875 o = dfsan_read_origin_of_first_taint(needle, needle_len + 1); in __dfso_strstr()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 533 const u8 *needle, size_t needle_len) in find_p2ps_substr() argument 539 if (!needle || !needle_len) in find_p2ps_substr() 549 if (os_memcmp(haystack + i, needle, needle_len) == 0) in find_p2ps_substr()
|