Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 25 of 41) sorted by relevance

12

/src/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DStringViewExtras.h29 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()
/src/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()
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()
/src/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c49 _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()
/src/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
110 size_t len2 = internal_strlen(needle); in internal_strstr()
114 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
H A DFuzzerUtil.h69 const void *needle, size_t needlelen);
/src/sys/contrib/zstd/programs/
H A Dutil.c747 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()
/src/contrib/libarchive/libarchive/
H A Darchive_read_support_format_warc.c461 const char *needle, const size_t needlesize) in xmemmem() argument
464 const char *const eon = needle + needlesize; in xmemmem()
478 } else if ((hay = memchr(hay, *needle, haysize)) == NULL) { in xmemmem()
487 for (hp = hay + 1U, np = needle + 1U, hsum = *hay, nsum = *hay, eqp = 1U; in xmemmem()
510 if (hsum == nsum && memcmp(cand, needle, needlesize - 1U) == 0) { in xmemmem()
/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cpp243 char *internal_strstr(const char *haystack, const char *needle) { in internal_strstr() argument
246 uptr len2 = internal_strlen(needle); in internal_strstr()
249 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
H A Dsanitizer_libc.h67 char *internal_strstr(const char *haystack, const char *needle);
/src/contrib/llvm-project/openmp/runtime/src/
H A Dompt-specific.h77 #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
/src/contrib/wpa/src/utils/
H A Dos_internal.c478 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 Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument
/src/contrib/less/
H A Dos.c570 char * strstr(constant char *haystack, constant char *needle) in strstr() argument
572 if (*needle == '\0') in strstr()
576 constant char *n = needle; in strstr()
/src/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1538 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,
/src/contrib/googletest/googletest/src/
H A Dgtest.cc1841 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1842 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred()
1844 return strstr(haystack, needle) != nullptr; in IsSubstringPred()
1847 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1848 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred()
1850 return wcsstr(haystack, needle) != nullptr; in IsSubstringPred()
1855 bool IsSubstringPred(const StringType& needle, const StringType& haystack) { in IsSubstringPred() argument
1856 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1867 const StringType& needle, in IsSubstringImpl() argument
1869 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl()
[all …]
/src/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_mac.cpp64 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
67 int err = dladdr(needle, &info); in AsanApplyToGlobals()
H A Dasan_internal.h104 void AsanApplyToGlobals(globals_op_fptr op, const void *needle);
H A Dasan_linux.cpp100 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
H A Dasan_fuchsia.cpp52 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
H A Dasan_win.cpp208 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { in AsanApplyToGlobals() argument
/src/contrib/wpa/src/drivers/
H A Ddriver_macsec_linux.c1126 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()
/src/contrib/sendmail/src/
H A Dusersmtp.c1547 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';
/src/sys/netinet/libalias/
H A Dalias_db.c105 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()
/src/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1838 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()

12