Searched refs:needle (Results 1 - 18 of 18) sorted by relevance

/netbsd-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/
H A Dstrstr.h30 extern char *strstr (const char *haystack, const char *needle);
H A Dstrstr.c40 register const unsigned char *haystack, *needle; local
44 needle = (const unsigned char *) pneedle;
46 b = *needle;
58 c = *++needle;
61 ++needle;
90 rneedle = needle;
99 a = *++needle;
105 a = *++needle;
109 needle = rneedle; /* took the register-poor approach */
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Dstrstr.h33 extern char *strstr (const char *haystack, const char *needle);
H A Dstrstr.c34 strstr (const char *haystack, const char *needle) argument
36 /* Be careful not to look at the entire extent of haystack or needle
38 - haystack may be very long, and a match of needle found early,
39 - needle may be very long, and not even a short initial segment of
40 needle may be found in haystack. */
46 mbui_init (iter_needle, needle);
67 mbui_init (rneedle, needle);
93 if (*needle != '\0')
95 /* Speed up the following searches of needle by caching its first
97 char b = *needle
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/libiberty/
H A Dmemmem.c20 @deftypefn Supplemental void* memmem (const void *@var{haystack}, size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len})
22 Returns a pointer to the first occurrence of @var{needle} (length
45 memmem (const void *haystack, size_t haystack_len, const void *needle, argument
63 if (begin[0] == ((const char *) needle)[0] &&
65 (const void *) ((const char *) needle + 1),
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libiberty/
H A Dmemmem.c20 @deftypefn Supplemental void* memmem (const void *@var{haystack}, size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len})
22 Returns a pointer to the first occurrence of @var{needle} (length
45 memmem (const void *haystack, size_t haystack_len, const void *needle, argument
63 if (begin[0] == ((const char *) needle)[0] &&
65 (const void *) ((const char *) needle + 1),
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/libiberty/
H A Dmemmem.c21 size_t @var{haystack_len} const void *@var{needle}, size_t @var{needle_len})
23 Returns a pointer to the first occurrence of @var{needle} (length
46 memmem (const void *haystack, size_t haystack_len, const void *needle, argument
64 if (begin[0] == ((const char *) needle)[0] &&
66 (const void *) ((const char *) needle + 1),
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssl/dist/demos/tunala/
H A Dbreakage.c41 char *int_strstr(const char *haystack, const char *needle) argument
43 const char *sub_haystack = haystack, *sub_needle = needle;
45 if(!needle)
58 sub_needle = needle;
H A Dtunala.h212 char *int_strstr(const char *haystack, const char *needle);
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/gnulib/
H A Dmemmem.c46 const unsigned char *needle = (const unsigned char *) needle_start; local
64 haystack = memchr (haystack, *needle, haystack_len);
70 return two_way_short_needle (haystack, haystack_len, needle, needle_len);
73 return two_way_long_needle (haystack, haystack_len, needle, needle_len);
H A Dstr-two-way.h61 needle, the better the potential performance gain. On the other
105 critical_factorization (const unsigned char *needle, size_t needle_len, argument
130 a = CANON_ELEMENT (needle[j + k]);
131 b = CANON_ELEMENT (needle[max_suffix + k]);
165 a = CANON_ELEMENT (needle[j + k]);
166 b = CANON_ELEMENT (needle[max_suffix_rev + k]);
213 const unsigned char *needle, size_t needle_len)
217 size_t period; /* The period of the right half of needle. */
218 size_t suffix; /* The index of the right half of needle. */
220 /* Factor the needle int
212 two_way_short_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument
306 two_way_long_needle(const unsigned char *haystack, size_t haystack_len, const unsigned char *needle, size_t needle_len) argument
[all...]
H A Dstring.in.h516 _GL_FUNCDECL_RPL (strstr, char *, (const char *haystack, const char *needle)
519 _GL_CXXALIAS_RPL (strstr, char *, (const char *haystack, const char *needle));
525 char *, (const char *haystack, const char *needle),
526 const char *, (const char *haystack, const char *needle));
530 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
532 (const char *haystack, const char *needle));
558 (const char *haystack, const char *needle)
561 (const char *haystack, const char *needle));
565 (const char *haystack, const char *needle)
572 char *, (const char *haystack, const char *needle),
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/utils/
H A Dos_none.c216 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c443 char * os_strstr(const char *haystack, const char *needle) argument
445 size_t len = os_strlen(needle);
447 if (os_strncmp(haystack, needle, len) == 0)
H A Dos.h352 * @needle: Needle to search from haystack
355 char * os_strstr(const char *haystack, const char *needle);
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libmudflap/
H A Dmf-hooks2.c376 WRAPPER2(char *, strstr, const char *haystack, const char *needle) argument
382 needle_sz = strlen (needle);
384 MF_VALIDATE_EXTENT(needle, CLAMPADD(needle_sz, 1), __MF_CHECK_READ, "strstr needle");
385 return strstr (haystack, needle);
392 const void *needle, size_t needlelen)
396 MF_VALIDATE_EXTENT(needle, needlelen, __MF_CHECK_READ, "memmem needle");
397 return memmem (haystack, haystacklen, needle, needlelen);
390 WRAPPER2(void *, memmem, const void *haystack, size_t haystacklen, const void *needle, size_t needlelen) argument
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/ld/
H A Dldlang.c2829 /* Remove the first occurrence of needle (if any) in haystack
2833 strcut (char *haystack, char *needle)
2835 haystack = strstr (haystack, needle);
2841 for (src = haystack + strlen (needle); *src;)
2831 strcut(char *haystack, char *needle) argument
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/
H A Dconfigure6051 char *needle = (char *) malloc (m + 1);
6058 if (haystack && needle)
6062 memset (needle, 'A', m);
6063 needle[m] = 'B';
6064 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6066 /* Check for empty needle behavior. */

Completed in 164 milliseconds