Lines Matching refs:haystack
1063 char_u *haystack; in f_stridx() local
1075 save_haystack = haystack = tv_get_string_buf_chk(&argvars[0], buf); in f_stridx()
1077 if (needle == NULL || haystack == NULL) in f_stridx()
1085 if (error || start_idx >= (int)STRLEN(haystack)) in f_stridx()
1088 haystack += start_idx; in f_stridx()
1091 pos = (char_u *)strstr((char *)haystack, (char *)needle); in f_stridx()
1374 char_u *haystack; in f_strridx() local
1386 haystack = tv_get_string_buf_chk(&argvars[0], buf); in f_strridx()
1389 if (needle == NULL || haystack == NULL) in f_strridx()
1392 haystack_len = (int)STRLEN(haystack); in f_strridx()
1406 lastmatch = haystack + end_idx; in f_strridx()
1410 for (rest = haystack; *rest != '\0'; ++rest) in f_strridx()
1413 if (rest == NULL || rest > haystack + end_idx) in f_strridx()
1422 rettv->vval.v_number = (varnumber_T)(lastmatch - haystack); in f_strridx()