Searched refs:haystack_len (Results 1 – 4 of 4) sorted by relevance
467 size_t haystack_len = GRPC_SLICE_LENGTH(haystack); in grpc_slice_slice() local472 if (haystack_len == 0 || needle_len == 0) return -1; in grpc_slice_slice()473 if (haystack_len < needle_len) return -1; in grpc_slice_slice()474 if (haystack_len == needle_len) in grpc_slice_slice()479 const uint8_t* last = haystack_bytes + haystack_len - needle_len; in grpc_slice_slice()
536 size_t haystack_len, i; in find_p2ps_substr() local545 haystack_len = os_strlen(adv_data->svc_info); in find_p2ps_substr()546 for (i = 0; i < haystack_len; i++) { in find_p2ps_substr()547 if (haystack_len - i < needle_len) in find_p2ps_substr()
35 int haystack_len, in FX_strstr() argument38 if (needle_len > haystack_len || needle_len == 0) { in FX_strstr()41 const char* end_ptr = haystack + haystack_len - needle_len; in FX_strstr()
36 int haystack_len, in FX_wcsstr() argument39 if (needle_len > haystack_len || needle_len == 0) { in FX_wcsstr()42 const wchar_t* end_ptr = haystack + haystack_len - needle_len; in FX_wcsstr()