Lines Matching refs:patlen

74 	el->el_search.patlen = 0;  in search_init()
179 el->el_search.patlen = in c_setpat()
181 if (el->el_search.patlen >= EL_BUFSIZ) in c_setpat()
182 el->el_search.patlen = EL_BUFSIZ - 1; in c_setpat()
183 if (el->el_search.patlen != 0) { in c_setpat()
185 el->el_search.patlen); in c_setpat()
186 el->el_search.patbuf[el->el_search.patlen] = '\0'; in c_setpat()
188 el->el_search.patlen = Strlen(el->el_search.patbuf); in c_setpat()
193 (void) fprintf(el->el_errfile, "patlen = %d\n", el->el_search.patlen); in c_setpat()
219 size_t oldpatlen = el->el_search.patlen; in ce_inc_search()
225 el->el_search.patlen >= el->el_line.limit) in ce_inc_search()
230 if (el->el_search.patlen == 0) { /* first round */ in ce_inc_search()
234 el->el_search.patbuf[el->el_search.patlen++] = '.'; in ce_inc_search()
235 el->el_search.patbuf[el->el_search.patlen++] = '*'; in ce_inc_search()
247 cp < &el->el_search.patbuf[el->el_search.patlen]; in ce_inc_search()
259 if (el->el_search.patlen >= EL_BUFSIZ - LEN) in ce_inc_search()
262 el->el_search.patbuf[el->el_search.patlen++] = in ce_inc_search()
282 if (el->el_search.patlen > LEN) in ce_inc_search()
299 el->el_search.patlen]) { in ce_inc_search()
301 el->el_search.patlen - LEN - 1; in ce_inc_search()
307 if (el->el_search.patlen >= in ce_inc_search()
312 el->el_search.patbuf[el->el_search.patlen++] = in ce_inc_search()
348 for (cp = &el->el_search.patbuf[el->el_search.patlen-1], in ce_inc_search()
356 if (el->el_search.patlen > LEN && ch != '[') { in ce_inc_search()
377 el->el_search.patbuf[el->el_search.patlen++] = in ce_inc_search()
379 el->el_search.patbuf[el->el_search.patlen++] = in ce_inc_search()
382 el->el_search.patbuf[el->el_search.patlen] = in ce_inc_search()
404 el->el_search.patlen -= LEN; in ce_inc_search()
405 el->el_search.patbuf[el->el_search.patlen] = in ce_inc_search()
435 el->el_search.patlen = oldpatlen; in ce_inc_search()
482 if (el->el_search.patlen == 0) { in cv_search()
495 el->el_search.patlen++; in cv_search()
496 el->el_search.patbuf[el->el_search.patlen++] = '.'; in cv_search()
497 el->el_search.patbuf[el->el_search.patlen++] = '*'; in cv_search()
498 el->el_search.patbuf[el->el_search.patlen] = '\0'; in cv_search()
508 el->el_search.patlen = (size_t)tmplen; in cv_search()
576 c, el->el_search.patlen, ct_encode_string(el->el_search.patbuf)); in cv_repeat_srch()