/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | StringViewExtras.h | 28 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 D | strings.c | 49 _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 D | os_internal.c | 478 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 D | os_none.c | 232 char * os_strstr(const char *haystack, const char *needle) in os_strstr() argument
|
H A D | os.h | 471 char * os_strstr(const char *haystack, const char *needle);
|
/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 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 D | FuzzerUtil.h | 68 const void *SearchMemory(const void *haystack, size_t haystacklen,
|
/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() 245 uptr len1 = internal_strlen(haystack); in internal_simple_strtoll() 249 if (internal_memcmp(haystack + pos, needle, len2) == 0) in internal_simple_strtoll() 250 return const_cast<char *>(haystack) + pos; 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/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() 219 for (p = haystack; *p; p++) in is_based()
|
/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/googletest/googletest/include/gtest/ |
H A D | gtest.h | 1539 const char* haystack); 1543 const wchar_t* haystack); 1547 const char* haystack); 1551 const wchar_t* haystack); 1555 const ::std::string& haystack); 1559 const ::std::string& haystack); 1565 const ::std::wstring& haystack); 1569 const ::std::wstring& haystack);
|
/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() 1841 const StringType& haystack) { in IsSubstringImpl() argument 1842 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl() [all …]
|
/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() 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 D | CPlusPlusLanguage.cpp | 369 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 D | p2p_supplicant_sd.c | 535 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 D | machine.c | 225 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 D | var.c | 1500 Substring_Find(Substring haystack, Substring needle) in Substring_Find() argument 1504 len = Substring_Length(haystack); in Substring_Find() 1507 if (memcmp(haystack.start + i, needle.start, needleLen) == 0) in Substring_Find() 1508 return haystack.start + i; in Substring_Find()
|
/freebsd/contrib/ncurses/progs/ |
H A D | tic.c | 557 matches(char **needle, const char *haystack) in matches() argument 566 if (_nc_name_match(haystack, needle[n], "|")) { in matches()
|
/freebsd/share/dict/ |
H A D | web2a | 27865 haystack thorn
|
H A D | web2 | 82970 haystack
|