Lines Matching refs:haystack
279 const byte *find_subbytes(const byte *haystack, size_t hlen, const byte *needle, size_t nlen, int d… in find_subbytes() argument
290 if (memcmp(&haystack[str_index], needle, nlen) == 0) { in find_subbytes()
292 return haystack + str_index; in find_subbytes()
706 GET_STR_DATA_LEN(args[0], haystack, haystack_len); in str_finder()
709 const byte *start = haystack; in str_finder()
710 const byte *end = haystack + haystack_len; in str_finder()
712 start = str_index_to_ptr(self_type, haystack, haystack_len, args[2], true); in str_finder()
715 end = str_index_to_ptr(self_type, haystack, haystack_len, args[3], true); in str_finder()
735 return MP_OBJ_NEW_SMALL_INT(utf8_ptr_to_index(haystack, p)); in str_finder()
738 return MP_OBJ_NEW_SMALL_INT(p - haystack); in str_finder()
1733 GET_STR_DATA_LEN(args[0], haystack, haystack_len); in str_count()
1736 const byte *start = haystack; in str_count()
1737 const byte *end = haystack + haystack_len; in str_count()
1739 start = str_index_to_ptr(self_type, haystack, haystack_len, args[2], true); in str_count()
1742 end = str_index_to_ptr(self_type, haystack, haystack_len, args[3], true); in str_count()