Searched refs:haystack (Results 1 - 17 of 17) sorted by last modified time

/macosx-10.9.5/CF-855.17/
H A DCFData.c692 static const uint8_t * __CFDataSearchBoyerMoore(const CFDataRef data, const uint8_t *haystack, unsigned long haystackLength, const uint8_t *needle, unsigned long needleLength, Boolean backwards) { argument
733 scan_haystack = haystack + haystackLength - needleLength;
734 while (scan_haystack >= haystack && scan_needle < end_needle) {
747 const uint8_t *const end_haystack = haystack + haystackLength;
749 scan_haystack = haystack + needleLength - 1;
792 const uint8_t *haystack = fullHaystack + searchRange.location; local
793 const uint8_t *searchResult = __CFDataSearchBoyerMoore(data, haystack, searchRange.length, needle, needleLength, (compareOptions & kCFDataSearchBackwards) != 0);
794 CFIndex resultLocation = (searchResult == NULL) ? kCFNotFound : searchRange.location + (searchResult - haystack);
/macosx-10.9.5/llvmCore-3425.0.33/utils/unittest/googletest/
H A Dgtest.cc1228 // substring of haystack. NULL is considered a substring of itself
1231 bool IsSubstringPred(const char* needle, const char* haystack) { argument
1232 if (needle == NULL || haystack == NULL)
1233 return needle == haystack;
1235 return strstr(haystack, needle) != NULL;
1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument
1239 if (needle == NULL || haystack == NULL)
1240 return needle == haystack;
1242 return wcsstr(haystack, needle) != NULL;
1248 const StringType& haystack) {
1247 IsSubstringPred(const StringType& needle, const StringType& haystack) argument
1257 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument
1280 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1286 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1292 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1298 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1304 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1310 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1317 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
1323 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/utils/unittest/googletest/include/gtest/
H A Dgtest.h1512 // themselves. They check whether needle is a substring of haystack
1516 // The {needle,haystack}_expr arguments are the stringified
1520 const char* needle, const char* haystack);
1523 const wchar_t* needle, const wchar_t* haystack);
1526 const char* needle, const char* haystack);
1529 const wchar_t* needle, const wchar_t* haystack);
1532 const ::std::string& needle, const ::std::string& haystack);
1535 const ::std::string& needle, const ::std::string& haystack);
1540 const ::std::wstring& needle, const ::std::wstring& haystack);
1543 const ::std::wstring& needle, const ::std::wstring& haystack);
[all...]
/macosx-10.9.5/procmail-14/procmail/src/
H A Dautoconf1195 unsigned long dobench(strstr,iter,haystack)char*(*const strstr)();
1196 unsigned long iter;const char*const haystack;
1199 do (*strstr)(haystack,FROM_EXPR);
1206 { char*haystack;
1208 if(haystack=malloc(BENCHSIZE))
1212 { haystack[i]='a';
1214 c1=0,haystack[i]='\n';
1216 c2=0,haystack[i]='\n';
1218 haystack[i]='\0';
1221 if((syscnt=dobench(strstr,iter<<=1,haystack))
[all...]
H A Dsublib.c77 { register const uchar*haystack,*needle;register chartype b; local
79 haystack=(const uchar*)phaystack;
82 haystack--; /* possible ANSI violation */
85 if(!(a= *++haystack))
96 jin: { if((a= *++haystack)==c)
100 a= *++haystack;
102 { for(;a!=b;a= *++haystack)
105 if((a= *++haystack)==b)
111 while((a= *++haystack)!=c);
115 if(*(rhaystack=haystack
[all...]
H A Dincludes.h496 #define strstr(haystack,needle) sstrstr(haystack,needle)
/macosx-10.9.5/zsh-60/zsh/Src/Zle/
H A Dzle_hist.c179 * Search for needle in haystack. Haystack and needle are metafied strings.
180 * Start the search at position pos in haystack.
184 * Return the pointer to the location in haystack found, else NULL.
192 zlinefind(char *haystack, int pos, char *needle, int dir, int sens) argument
194 char *s = haystack + pos;
206 if (s == haystack)
/macosx-10.9.5/ruby-104/ruby/missing/
H A Dstrstr.c8 strstr(const char *haystack, const char *needle) argument
13 if (*needle == 0) return (char *)haystack;
14 hend = haystack + strlen(haystack) - strlen(needle) + 1;
15 while (haystack < hend) {
16 if (*haystack == *needle) {
17 a = haystack;
20 if (*b == 0) return (char *)haystack;
26 haystack++;
/macosx-10.9.5/vim-53/runtime/autoload/
H A Dphpcomplete.vim1100 \ 'array_search(': 'mixed needle, array haystack [, bool strict] | mixed',
2151 \ 'iconv_strpos(': 'string haystack, string needle [, int offset [, string charset]] | int',
2152 \ 'iconv_strrpos(': 'string haystack, string needle [, string charset] | int',
2378 \ 'in_array(': 'mixed needle, array haystack [, bool strict] | bool',
2635 \ 'mb_strpos(': 'string haystack, string needle [, int offset [, string encoding]] | int',
2636 \ 'mb_strrpos(': 'string haystack, string needle [, string encoding] | int',
2641 \ 'mb_substr_count(': 'string haystack, string needle [, string encoding] | int',
4329 \ 'stripos(': 'string haystack, string needle [, int offset] | int',
4333 \ 'stristr(': 'string haystack, string needle | string',
4340 \ 'strpbrk(': 'string haystack, strin
[all...]
/macosx-10.9.5/ncurses-42/ncurses/ncurses/tinfo/
H A Dstrings.c47 _nc_strstr(const char *haystack, const char *needle) argument
49 size_t len1 = strlen(haystack);
54 if (!strncmp(haystack, needle, len2)) {
55 result = (char *) haystack;
58 haystack++;
/macosx-10.9.5/ncurses-42/ncurses/progs/
H A Dtic.c434 matches(char **needle, const char *haystack) argument
435 /* does entry in needle list match |-separated field in haystack? */
442 if (_nc_name_match(haystack, needle[n], "|")) {
/macosx-10.9.5/bash-92/bash-3.2/lib/sh/
H A Dstrstr.c43 register const unsigned char *haystack, *needle; local
46 haystack = (const unsigned char *) phaystack;
52 haystack--; /* possible ANSI violation */
55 c = *++haystack;
74 a = *++haystack;
79 a = *++haystack;
85 jin: a = *++haystack;
92 rhaystack = haystack-- + 1;
119 return (char*) haystack;
/macosx-10.9.5/nano-11/src/
H A Dchars.c599 const char *nstrcasestr(const char *haystack, const char *needle) argument
601 assert(haystack != NULL && needle != NULL);
603 for (; *haystack != '\0'; haystack++) {
604 const char *r = haystack, *q = needle;
610 return haystack;
618 const char *mbstrcasestr(const char *haystack, const char *needle) argument
626 assert(haystack != NULL && needle != NULL);
631 while (*haystack != '\0') {
632 const char *r = haystack, *
682 revstrstr(const char *haystack, const char *needle, const char *rev_start) argument
704 revstrcasestr(const char *haystack, const char *needle, const char *rev_start) argument
725 mbrevstrcasestr(const char *haystack, const char *needle, const char *rev_start) argument
[all...]
H A Dproto.h206 const char *nstrcasestr(const char *haystack, const char *needle);
208 const char *mbstrcasestr(const char *haystack, const char *needle);
210 const char *revstrstr(const char *haystack, const char *needle, const
214 const char *revstrcasestr(const char *haystack, const char *needle,
216 const char *mbrevstrcasestr(const char *haystack, const char *needle,
706 const char *strstrwrapper(const char *haystack, const char *needle,
H A Dutils.c290 const char *strstrwrapper(const char *haystack, const char *needle, argument
295 if ((start > haystack && *(start - 1) == '\0') || start < haystack)
298 assert(haystack != NULL && needle != NULL && start != NULL);
304 if (regexec(&search_regexp, haystack, 1, regmatches,
305 0) == 0 && haystack + regmatches[0].rm_so <= start) {
306 const char *retval = haystack + regmatches[0].rm_so;
322 (start > haystack) ? REG_NOTBOL : 0) == 0) {
335 return revstrstr(haystack, needle, start);
343 return mbrevstrcasestr(haystack, needl
[all...]
/macosx-10.9.5/gnutar-452/gnutar/lib/
H A Dstring_.h335 extern char *strcasestr (const char *haystack, const char *needle);
427 extern char * mbsstr (const char *haystack, const char *needle);
470 strlen (haystack) < strlen (needle) !
472 extern char * mbscasestr (const char *haystack, const char *needle);
/macosx-10.9.5/uucp-11/uucp/lib/
H A Dstrstr.c26 strstr (haystack, needle)
27 const char *const haystack;
31 register const char *const haystack_end = strchr(haystack, '\0');
38 if ((size_t) (haystack_end - haystack) < needle_len)
41 for (begin = &haystack[needle_last]; begin < haystack_end; ++begin)
48 while (--n >= needle && --h >= haystack);

Completed in 237 milliseconds