Searched defs:needle (Results 1 - 25 of 63) sorted by relevance

123

/external/syslinux/com32/lib/
H A Dstrstr.c7 char *strstr(const char *haystack, const char *needle) argument
9 return (char *)memmem(haystack, strlen(haystack), needle, strlen(needle));
H A Dmemmem.c14 void *memmem(const void *haystack, size_t n, const void *needle, size_t m) argument
17 const unsigned char *x = (const unsigned char *)needle;
/external/skia/tests/
H A DAnnotationTest.cpp14 /** Returns true if data (may contain null characters) contains needle (null
16 static bool ContainsString(const char* data, size_t dataSize, const char* needle) { argument
17 size_t nSize = strlen(needle);
19 if (strncmp(&data[i], needle, nSize) == 0) {
/external/iproute2/tc/
H A Dem_nbyte.c44 struct bstr *needle = args; local
57 if (needle->len <= 0)
58 return PARSE_ERR(args, "nbyte: needle length is 0");
95 nb.len = needle->len;
101 addraw_l(n, MAX_MSG, needle->data, needle->len);
112 __u8 *needle; local
124 needle = data + sizeof(*nb);
127 fprintf(fd, "%02x ", needle[i]);
131 fprintf(fd, "%c", isprint(needle[
[all...]
/external/libbrillo/brillo/
H A Dsecure_blob_unittest.cc25 const brillo::Blob& needle) {
27 haystack.begin(), haystack.end(), needle.begin(), needle.end());
32 const brillo::Blob& needle) {
34 haystack.begin(), haystack.end(), needle.begin(), needle.end());
24 FindBlobInBlob(const brillo::Blob& haystack, const brillo::Blob& needle) argument
31 FindBlobIndexInBlob(const brillo::Blob& haystack, const brillo::Blob& needle) argument
/external/v8/src/inspector/
H A Dstring-util.h35 static size_t find(const String& s, const char* needle) { argument
36 return s.find(needle);
38 static size_t find(const String& s, const String& needle) { argument
39 return s.find(needle);
/external/compiler-rt/lib/asan/
H A Dasan_linux.cc79 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
H A Dasan_mac.cc72 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
73 // Find the Mach-O header for the image containing the needle
75 int err = dladdr(needle, &info);
H A Dasan_win.cc170 void AsanApplyToGlobals(globals_op_fptr op, const void *needle) { argument
/external/google-breakpad/src/common/linux/
H A Dlinux_libc_support.cc123 const char* my_strchr(const char* haystack, char needle) { argument
124 while (*haystack && *haystack != needle)
126 if (*haystack == needle)
131 const char* my_strrchr(const char* haystack, char needle) { argument
134 if (*haystack == needle)
141 void* my_memchr(const void* src, int needle, size_t src_len) { argument
145 if (*p == needle)
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_string.h169 util_strstr(const char *haystack, const char *needle) argument
172 size_t len = strlen(needle);
174 for (; (p = util_strchr(p, *needle)) != 0; p++) {
175 if (util_strncmp(p, needle, len) == 0) {
/external/mesa3d/src/glx/tests/
H A Dclientinfo_unittest.cpp680 const char *const needle = "GLX_ARB_create_context"; local
681 const unsigned len = strlen(needle);
684 char *match = strstr(haystack, needle);
706 const char *const needle = "GLX_ARB_create_context_profile"; local
707 const unsigned len = strlen(needle);
710 char *match = strstr(haystack, needle);
/external/webrtc/webrtc/base/
H A Dstringutils.h93 inline const wchar_t* strstr(const wchar_t* haystack, const wchar_t* needle) { argument
94 return wcsstr(haystack, needle);
/external/avb/libavb/
H A Davb_util.c228 const char* avb_strstr(const char* haystack, const char* needle) { argument
232 * |needle| matches. If so, check the rest of |needle|.
235 if (haystack[n] != needle[0]) {
240 if (needle[m] == '\0') {
244 if (haystack[n + m] != needle[m]) {
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_libc.cc225 char *internal_strstr(const char *haystack, const char *needle) { argument
228 uptr len2 = internal_strlen(needle);
231 if (internal_memcmp(haystack + pos, needle, len2) == 0)
/external/libnl/lib/
H A Dcache.c1005 struct nl_object *needle)
1009 obj = nl_hash_table_lookup(cache->hashtable, needle);
1021 * @arg needle Object to look for.
1023 * Searches the cache for an object which matches the object \p needle.
1034 struct nl_object *needle)
1039 return __cache_fast_lookup(cache, needle);
1042 if (nl_object_identical(obj, needle)) {
1004 __cache_fast_lookup(struct nl_cache *cache, struct nl_object *needle) argument
1033 nl_cache_search(struct nl_cache *cache, struct nl_object *needle) argument
/external/regex-re2/re2/
H A Dnfa.cc394 // Returns whether haystack contains needle's memory.
395 static bool StringPieceContains(const StringPiece haystack, const StringPiece needle) { argument
396 return haystack.begin() <= needle.begin() &&
397 haystack.end() >= needle.end();
/external/toybox/toys/pending/
H A Dtelnetd.c280 char *needle = NULL; local
292 needle = memchr(start, IAC, len);
293 if (needle) c = needle - start;
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) argument
/external/wpa_supplicant_8/src/utils/
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) argument
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dos_none.c232 char * os_strstr(const char *haystack, const char *needle) argument
/external/aac/libSYS/src/
H A DgenericStds.cpp197 const char *FDKstrstr(const char *haystack, const char *needle) { return strstr(haystack, needle); } argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_context.c115 char *needle = strstr(bsw, "XXX"); local
116 if (needle) {
117 memcpy(needle, get_bsw_model(screen), 3);
/external/selinux/libsepol/src/
H A Dconditional.c169 /* Find a conditional (the needle) within a list of existing ones (the
175 cond_node_t * needle, cond_node_t * haystack,
179 if (cond_expr_equal(needle, haystack)) {
187 return cond_node_create(p, needle);
174 cond_node_find(policydb_t * p, cond_node_t * needle, cond_node_t * haystack, int *was_created) argument
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Ddriver_macsec_linux.c949 struct rtnl_link *needle; local
952 needle = rtnl_link_macsec_alloc();
953 if (!needle)
956 rtnl_link_set_link(needle, parent);
957 rtnl_link_macsec_set_sci(needle, sci);
959 match = nl_cache_find(cache, (struct nl_object *) needle);
960 rtnl_link_put(needle);

Completed in 1227 milliseconds

123