Searched refs:needle (Results 1 – 7 of 7) sorted by relevance
/picolibc-3.7.0-3.6.0/test/ |
D | test-strchr.c | 42 #define check(func, needle, expect) do { \ argument 43 char *ptr = func(haystack, needle); \ 49 #func, haystack, needle, result, expect); \ 55 #define many_check(func, needle, expect) do { \ argument 56 check(func, needle, expect); \ 57 check(func, needle | 0xff00, expect); \ 58 check(func, needle | 0x0100, expect); \ 59 check(func, needle | 0x8000, expect); \ 62 #define many_check(func, needle, expect) do { \ argument 63 check(func, needle, expect); \ [all …]
|
/picolibc-3.7.0-3.6.0/newlib/libc/string/ |
D | str-two-way.h | 92 critical_factorization (const unsigned char *needle, size_t needle_len, in critical_factorization() argument 117 a = CANON_ELEMENT (needle[j + k]); in critical_factorization() 118 b = CANON_ELEMENT (needle[(size_t)(max_suffix + k)]); in critical_factorization() 152 a = CANON_ELEMENT (needle[j + k]); in critical_factorization() 153 b = CANON_ELEMENT (needle[max_suffix_rev + k]); in critical_factorization() 200 const unsigned char *needle, size_t needle_len) in two_way_short_needle() argument 210 suffix = critical_factorization (needle, needle_len, &period); in two_way_short_needle() 214 if (CMP_FUNC (needle, needle + period, suffix) == 0) in two_way_short_needle() 225 while (i < needle_len && (CANON_ELEMENT (needle[i]) in two_way_short_needle() 232 while (memory < i + 1 && (CANON_ELEMENT (needle[i]) in two_way_short_needle() [all …]
|
D | strnstr.c | 42 strnstr(const char *haystack, const char *needle, size_t haystack_len) in strnstr() argument 44 size_t needle_len = strnlen(needle, haystack_len); in strnstr() 46 if (needle_len < haystack_len || !needle[needle_len]) { in strnstr() 47 char *x = memmem(haystack, haystack_len, needle, needle_len); in strnstr()
|
D | strcasestr.c | 119 const char *needle = find; in strcasestr() 127 while (*haystack && *needle) in strcasestr() 129 == tolower ((unsigned char) *needle++)); in strcasestr() 130 if (*needle) in strcasestr() 134 needle_len = needle - find; in strcasestr()
|
D | memmem.c | 69 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len) in memmem() argument 72 const char *ne = needle; in memmem() 114 memmem (const void *haystack, size_t hs_len, const void *needle, size_t ne_len) in memmem() argument 117 const unsigned char *ne = needle; in memmem()
|
D | strstr.c | 161 strstr (const char *haystack, const char *needle) in strstr() argument 164 const unsigned char *ne = (const unsigned char *) needle; in strstr()
|
/picolibc-3.7.0-3.6.0/newlib/ |
D | ChangeLog-2015 | 4660 periodic needle having false positive. Affects memmem, strstr,
|