Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DStringViewExtras.h28 inline bool starts_with(std::string_view haystack, 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/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/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/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.h68 const void *SearchMemory(const void *haystack, size_t haystacklen,
/freebsd/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
245 uptr len1 = internal_strlen(haystack); in internal_strstr()
249 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_strstr()
250 return const_cast<char *>(haystack) + pos; in internal_strstr()
H A Dsanitizer_libc.h67 char *internal_strstr(const char *haystack, const char *needle);
/freebsd/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/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
/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1524 const char* haystack);
1528 const wchar_t* haystack);
1532 const char* haystack);
1536 const wchar_t* haystack);
1540 const ::std::string& haystack);
1544 const ::std::string& haystack);
1550 const ::std::wstring& haystack);
1554 const ::std::wstring& haystack);
/freebsd/contrib/googletest/googletest/src/
H A Dgtest.cc1789 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred()
1791 return strstr(haystack, needle) != nullptr; in IsSubstringPred()
1795 if (needle == nullptr || haystack == nullptr) return needle == haystack; in IsSubstringPred()
1797 return wcsstr(haystack, needle) != nullptr; in IsSubstringPred()
1803 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1815 const StringType& haystack) { in IsSubstringImpl() argument
1847 const char* haystack) { in IsNotSubstring() argument
1853 const wchar_t* haystack) { in IsNotSubstring() argument
1859 const ::std::string& haystack) { in IsSubstring()
1866 const ::std::string& haystack) { in IsNotSubstring()
[all …]
/freebsd/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()
1848 dfsan_union(dfsan_read_label(haystack, len), 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()
1870 size_t len = ret ? ret + needle_len - haystack : strlen(haystack) + 1; in __dfso_strstr()
1871 dfsan_origin o = dfsan_read_origin_of_first_taint(haystack, len); in __dfso_strstr()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusLanguage.cpp369 llvm::StringRef haystack = m_context; in ContainsPath() local
370 if (!haystack.consume_back(context)) in ContainsPath()
372 if (haystack.empty() || !isalnum(haystack.back())) in ContainsPath()
/freebsd/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/usr.bin/top/
H A Dmachine.c225 static int find_uid(uid_t needle, int *haystack);
229 find_uid(uid_t needle, int *haystack) in find_uid() argument
234 if ((uid_t)haystack[i] == needle) in find_uid()
/freebsd/contrib/bmake/
H A Dvar.c1459 Substring_Find(Substring haystack, Substring needle) in Substring_Find() argument
1463 len = Substring_Length(haystack); in Substring_Find()
1466 if (memcmp(haystack.start + i, needle.start, needleLen) == 0) in Substring_Find()
1467 return haystack.start + i; in Substring_Find()
/freebsd/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/share/dict/
H A Dweb2a27865 haystack thorn
H A Dweb282970 haystack