Searched refs:haystack (Results 1 - 25 of 67) sorted by relevance

123

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-runtime/gnulib-lib/
H A Dc-strstr.h40 extern char *c_strstr (const char *haystack, const char *needle);
H A Dc-strstr.c33 knuth_morris_pratt (const char *haystack, const char *needle, argument
84 rhaystack = haystack;
85 phaystack = haystack;
119 c_strstr (const char *haystack, const char *needle) argument
121 /* Be careful not to look at the entire extent of haystack or needle
123 - haystack may be very long, and a match of needle found early,
125 needle may be found in haystack. */
129 Let n = strlen(haystack), m = strlen(needle).
153 for (;; haystack++)
155 if (*haystack
[all...]
H A Dmbsstr.c36 knuth_morris_pratt_unibyte (const char *haystack, const char *needle, argument
87 rhaystack = haystack;
88 phaystack = haystack;
122 knuth_morris_pratt_multibyte (const char *haystack, const char *needle, argument
188 mbui_init (rhaystack, haystack);
189 mbui_init (phaystack, haystack);
233 mbsstr (const char *haystack, const char *needle) argument
235 /* Be careful not to look at the entire extent of haystack or needle
237 - haystack may be very long, and a match of needle found early,
239 needle may be found in haystack
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libunistring-0.9.3/lib/unistr/
H A Du-strstr.h19 FUNC (const UNIT *haystack, const UNIT *needle) argument
25 return (UNIT *) haystack;
29 return U_STRCHR (haystack, first);
32 for (; *haystack != 0; haystack++)
33 if (*haystack == first)
36 const UNIT *hptr = haystack + 1;
44 return (UNIT *) haystack;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/
H A Dc-strstr.h40 extern char *c_strstr (const char *haystack, const char *needle);
H A Dc-strcasestr.h28 extern char *c_strcasestr (const char *haystack, const char *needle);
H A Dc-strcasestr.c34 knuth_morris_pratt (const char *haystack, const char *needle, argument
85 rhaystack = haystack;
86 phaystack = haystack;
122 strlen (haystack) < strlen (needle) ! */
124 c_strcasestr (const char *haystack, const char *needle) argument
126 /* Be careful not to look at the entire extent of haystack or needle
128 - haystack may be very long, and a match of needle found early,
130 needle may be found in haystack. */
134 Let n = strlen(haystack), m = strlen(needle).
158 for (;; haystack
[all...]
H A Dc-strstr.c33 knuth_morris_pratt (const char *haystack, const char *needle, argument
84 rhaystack = haystack;
85 phaystack = haystack;
119 c_strstr (const char *haystack, const char *needle) argument
121 /* Be careful not to look at the entire extent of haystack or needle
123 - haystack may be very long, and a match of needle found early,
125 needle may be found in haystack. */
129 Let n = strlen(haystack), m = strlen(needle).
153 for (;; haystack++)
155 if (*haystack
[all...]
H A Dmbsstr.c36 knuth_morris_pratt_unibyte (const char *haystack, const char *needle, argument
87 rhaystack = haystack;
88 phaystack = haystack;
122 knuth_morris_pratt_multibyte (const char *haystack, const char *needle, argument
188 mbui_init (rhaystack, haystack);
189 mbui_init (phaystack, haystack);
233 mbsstr (const char *haystack, const char *needle) argument
235 /* Be careful not to look at the entire extent of haystack or needle
237 - haystack may be very long, and a match of needle found early,
239 needle may be found in haystack
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/libgettextpo/
H A Dc-strstr.h40 extern char *c_strstr (const char *haystack, const char *needle);
H A Dc-strstr.c33 knuth_morris_pratt (const char *haystack, const char *needle, argument
84 rhaystack = haystack;
85 phaystack = haystack;
119 c_strstr (const char *haystack, const char *needle) argument
121 /* Be careful not to look at the entire extent of haystack or needle
123 - haystack may be very long, and a match of needle found early,
125 needle may be found in haystack. */
129 Let n = strlen(haystack), m = strlen(needle).
153 for (;; haystack++)
155 if (*haystack
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-tests/
H A Dtest-mbsstr2.c75 /* Check that a very long haystack is handled quickly if the needle is
83 char *haystack = (char *) malloc (m + 1); local
84 if (haystack != NULL)
86 memset (haystack, 'A', m);
87 haystack[0] = '\303'; haystack[1] = '\204';
88 haystack[m] = '\0';
92 ASSERT (mbsstr (haystack, needle) == haystack + 2);
95 free (haystack);
104 char *haystack = local
129 char *haystack = (char *) malloc (2 * m + 3); local
[all...]
H A Dtest-c-strcasestr.c65 /* Check that a very long haystack is handled quickly if the needle is
74 char *haystack = (char *) malloc (m + 1); local
75 if (haystack != NULL)
77 memset (haystack, 'A', m);
78 haystack[0] = 'B';
79 haystack[m] = '\0';
83 ASSERT (c_strcasestr (haystack, needle) == haystack + 1);
86 free (haystack);
90 /* Check that a very long needle is discarded quickly if the haystack i
95 char *haystack = local
116 char *haystack = (char *) malloc (2 * m + 2); local
[all...]
H A Dtest-c-strstr.c65 /* Check that a very long haystack is handled quickly if the needle is
73 char *haystack = (char *) malloc (m + 1); local
74 if (haystack != NULL)
76 memset (haystack, 'A', m);
77 haystack[0] = 'B';
78 haystack[m] = '\0';
82 ASSERT (c_strstr (haystack, needle) == haystack + 1);
85 free (haystack);
89 /* Check that a very long needle is discarded quickly if the haystack i
94 char *haystack = local
115 char *haystack = (char *) malloc (2 * m + 2); local
[all...]
H A Dtest-mbsstr1.c66 /* Check that a very long haystack is handled quickly if the needle is
74 char *haystack = (char *) malloc (m + 1); local
75 if (haystack != NULL)
77 memset (haystack, 'A', m);
78 haystack[0] = 'B';
79 haystack[m] = '\0';
83 ASSERT (mbsstr (haystack, needle) == haystack + 1);
86 free (haystack);
90 /* Check that a very long needle is discarded quickly if the haystack i
95 char *haystack = local
116 char *haystack = (char *) malloc (2 * m + 2); local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/util/
H A Dstrcasestr.c49 register const unsigned char *haystack, *needle; local
52 haystack = (const unsigned char *) phaystack;
57 haystack--; /* possible ANSI violation */
59 c = *++haystack;
76 a = *++haystack;
81 a = *++haystack;
87 jin:a = *++haystack;
94 rhaystack = haystack-- + 1;
120 return (char *) haystack;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/wget-1.12/lib/
H A Dstrcasestr.c47 const char *haystack = haystack_start; local
56 while (*haystack && *needle)
58 ok &= (TOLOWER ((unsigned char) *haystack)
60 haystack++;
68 haystack = haystack_start + 1;
75 return two_way_short_needle ((const unsigned char *) haystack,
79 return two_way_long_needle ((const unsigned char *) haystack, haystack_len,
H A Dstr-two-way.h212 two_way_short_needle (const unsigned char *haystack, size_t haystack_len, argument
234 while (AVAILABLE (haystack, haystack_len, j, needle_len))
239 == CANON_ELEMENT (haystack[i + j])))
246 == CANON_ELEMENT (haystack[i + j])))
249 return (RETURN_TYPE) (haystack + j);
268 while (AVAILABLE (haystack, haystack_len, j, needle_len))
273 == CANON_ELEMENT (haystack[i + j])))
280 == CANON_ELEMENT (haystack[i + j])))
283 return (RETURN_TYPE) (haystack + j);
306 two_way_long_needle (const unsigned char *haystack, size_ argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/demos/tunala/
H A Dbreakage.c43 char *int_strstr(const char *haystack, const char *needle) argument
45 const char *sub_haystack = haystack, *sub_needle = needle;
48 return haystack;
49 if (!haystack)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/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;
46 return haystack;
47 if(!haystack)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl/demos/tunala/
H A Dbreakage.c43 char *int_strstr(const char *haystack, const char *needle) argument
45 const char *sub_haystack = haystack, *sub_needle = needle;
48 return haystack;
49 if (!haystack)
/netgear-R7000-V1.0.7.12_1.2.5/src/router/shared/
H A Dcommon_utils.h55 * @param haystack Array of Octets
56 * @param size Number of entries in haystack
60 extern int is_duplicate_octet(uint8* haystack, size_t size, uint8 needle);
64 * @param haystack Array of Octet ranges linearly [low1,high1,low2,high2]
65 * @param size Number of entries in haystack
70 extern int is_octet_range_overlapping(uint8* haystack, size_t size,
H A Dcommon_utils.c74 is_duplicate_octet(uint8* haystack, size_t size, uint8 needle) argument
76 assert(haystack);
83 if (haystack[iter] == needle)
92 is_octet_range_overlapping(uint8* haystack, size_t size, uint8 low_needle, uint8 high_needle) argument
94 assert(haystack);
101 low_iter = haystack[(iter*2)];
102 high_iter = haystack[(iter*2)+1];
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/minidlna/
H A Dutils.h14 ends_with(const char * haystack, const char * needle);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/bftpd-1.6.6/
H A Dmystring.c5 int pos(char *haystack, char *needle) argument
7 if (strstr(haystack, needle)) {
8 return (int) strstr(haystack, needle) - (int) haystack;

Completed in 114 milliseconds

123