Searched refs:needle_len (Results 1 – 10 of 10) sorted by relevance
/third_party/alsa-utils/alsamixer/ |
D | configparser.c | 25 unsigned int needle_len; in strlist_index() local 29 needle_len = strlen(needle); in strlist_index() 30 if (needle_len <= itemlen && needle[needle_len - 1] != ' ') { in strlist_index() 34 if (pos % itemlen == 0 && (needle_len == itemlen || haystack[pos+needle_len] == ' ')) in strlist_index()
|
/third_party/gettext/libtextstyle/gnulib-local/lib/glib/ |
D | gstrfuncs.c | 2617 gsize needle_len = strlen (needle); in g_strstr_len() local 2621 if (needle_len == 0) in g_strstr_len() 2624 if (haystack_len < needle_len) in g_strstr_len() 2627 end = haystack + haystack_len - needle_len; in g_strstr_len() 2631 for (i = 0; i < needle_len; i++) in g_strstr_len() 2663 gsize needle_len; 2670 needle_len = strlen (needle); 2673 if (needle_len == 0) 2676 if (haystack_len < needle_len) 2679 p = haystack + haystack_len - needle_len; [all …]
|
/third_party/grpc/src/core/lib/slice/ |
D | slice.cc | 573 size_t needle_len = GRPC_SLICE_LENGTH(needle); in grpc_slice_slice() local 576 if (haystack_len == 0 || needle_len == 0) return -1; in grpc_slice_slice() 577 if (haystack_len < needle_len) return -1; in grpc_slice_slice() 578 if (haystack_len == needle_len) { in grpc_slice_slice() 581 if (needle_len == 1) { in grpc_slice_slice() 585 const uint8_t* last = haystack_bytes + haystack_len - needle_len; in grpc_slice_slice() 587 if (0 == memcmp(cur, needle_bytes, needle_len)) { in grpc_slice_slice()
|
/third_party/glib/glib/ |
D | gstrfuncs.c | 2752 gsize needle_len = strlen (needle); in g_strstr_len() local 2757 if (needle_len == 0) in g_strstr_len() 2760 if (haystack_len_unsigned < needle_len) in g_strstr_len() 2763 end = haystack + haystack_len - needle_len; in g_strstr_len() 2767 for (i = 0; i < needle_len; i++) in g_strstr_len() 2797 gsize needle_len; in g_strrstr() local 2804 needle_len = strlen (needle); in g_strrstr() 2807 if (needle_len == 0) in g_strrstr() 2810 if (haystack_len < needle_len) in g_strrstr() 2813 p = haystack + haystack_len - needle_len; in g_strrstr() [all …]
|
/third_party/ffmpeg/libavutil/ |
D | avstring.c | 71 size_t needle_len = strlen(needle); in av_strnstr() local 72 if (!needle_len) in av_strnstr() 74 while (hay_length >= needle_len) { in av_strnstr() 76 if (!memcmp(haystack, needle, needle_len)) in av_strnstr()
|
/third_party/abseil-cpp/absl/strings/ |
D | string_view_benchmark.cc | 239 const int needle_len = state.range(0); in BM_worst_case_find_first_of() local 241 for (int i = 0; i < needle_len; ++i) { in BM_worst_case_find_first_of()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | string_view_benchmark.cc | 239 const int needle_len = state.range(0); in BM_worst_case_find_first_of() local 241 for (int i = 0; i < needle_len; ++i) { in BM_worst_case_find_first_of()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | p2p_supplicant_sd.c | 533 const u8 *needle, size_t needle_len) in find_p2ps_substr() argument 539 if (!needle || !needle_len) in find_p2ps_substr() 547 if (haystack_len - i < needle_len) in find_p2ps_substr() 549 if (os_memcmp(haystack + i, needle, needle_len) == 0) in find_p2ps_substr()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | p2p_supplicant_sd.c | 533 const u8 *needle, size_t needle_len) in find_p2ps_substr() argument 539 if (!needle || !needle_len) in find_p2ps_substr() 547 if (haystack_len - i < needle_len) in find_p2ps_substr() 549 if (os_memcmp(haystack + i, needle, needle_len) == 0) in find_p2ps_substr()
|
/third_party/gstreamer/gstplugins_bad/ext/curl/ |
D | gstcurlhttpsrc.c | 2226 int i, j, needle_len; in gst_curl_http_src_strcasestr() local 2229 needle_len = (int) strlen (needle); in gst_curl_http_src_strcasestr() 2235 if (j == needle_len) { in gst_curl_http_src_strcasestr()
|