/macosx-10.10.1/ruby-106/ruby/missing/ |
H A D | strstr.c | 8 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.10.1/uucp-11/uucp/lib/ |
H A D | strstr.c | 26 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);
|
/macosx-10.10.1/bash-94.1.2/bash-3.2/lib/sh/ |
H A D | strstr.c | 43 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.10.1/OpenSSL098-52/src/demos/tunala/ |
H A D | breakage.c | 41 char *int_strstr(const char *haystack, const char *needle) argument 43 const char *sub_haystack = haystack, *sub_needle = needle; 46 return haystack; 47 if(!haystack)
|
H A D | tunala.h | 212 char *int_strstr(const char *haystack, const char *needle);
|
/macosx-10.10.1/procmail-14/procmail/src/ |
H A D | sublib.c | 77 { 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 D | autoconf | 1195 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 D | includes.h | 496 #define strstr(haystack,needle) sstrstr(haystack,needle)
|
/macosx-10.10.1/ncurses-44/ncurses/ncurses/tinfo/ |
H A D | strings.c | 47 _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.10.1/nano-12/src/ |
H A D | chars.c | 599 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 D | utils.c | 290 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...] |
H A D | proto.h | 206 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,
|
/macosx-10.10.1/gnutar-453/gnutar/lib/ |
H A D | string_.h | 335 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.10.1/llvmCore-3425.0.34/utils/unittest/googletest/include/gtest/ |
H A D | gtest.h | 1512 // 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.10.1/llvmCore-3425.0.34/utils/unittest/googletest/ |
H A D | gtest.cc | 1228 // 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.10.1/WTF-7600.1.24/wtf/ |
H A D | DateMath.cpp | 575 const char *haystack = "janfebmaraprmayjunjulaugsepoctnovdec"; local 576 const char *str = strstr(haystack, needle); 578 int position = static_cast<int>(str - haystack);
|
/macosx-10.10.1/apache-793/httpd/server/ |
H A D | util_expr_eval.c | 250 apr_array_header_t *haystack; local 254 haystack = (*func)(ctx, info->node_arg2, ap_expr_eval_word(ctx, arg)); 255 if (haystack == NULL) 257 for (; i < haystack->nelts; i++) { 258 if (strcmp(needle, APR_ARRAY_IDX(haystack,i,char *)) == 0)
|
/macosx-10.10.1/zsh-61/zsh/Src/Zle/ |
H A D | zle_hist.c | 179 * 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.10.1/ncurses-44/ncurses/progs/ |
H A D | tic.c | 434 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.10.1/vim-55/runtime/autoload/ |
H A D | phpcomplete.vim | 1100 \ '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.10.1/Heimdal-398.1.2/lib/heimcred/ |
H A D | server.m | 1589 StringContains(CFStringRef haystack, CFStringRef needle) 1591 if (CFStringFind(haystack, needle, 0).location == kCFNotFound)
|