Lines Matching defs:cp
214 const Char *cp;
242 for (cp = (newdir == ED_SEARCH_PREV_HISTORY) ? STRbck : STRfwd;
243 *cp; *el->el_line.lastchar++ = *cp++)
246 for (cp = &el->el_search.patbuf[LEN];
247 cp < &el->el_search.patbuf[el->el_search.patlen];
248 *el->el_line.lastchar++ = *cp++)
297 for (cp = &el->el_search.patbuf[LEN];; cp++)
298 if (cp >= &el->el_search.patbuf[
302 cp = c__next_word(el->el_line.cursor,
305 while (el->el_line.cursor < cp &&
321 } else if (isglob(*cp)) {
348 for (cp = &el->el_search.patbuf[el->el_search.patlen-1],
350 cp >= &el->el_search.patbuf[LEN];
351 cp--)
352 if (*cp == '[' || *cp == ']') {
353 ch = *cp;
531 Char *cp = el->el_line.cursor;
544 for (; cp >= el->el_line.buffer; cp--) {
545 if (el_match(cp, ocp)) {
547 el->el_line.cursor = cp;
554 for (; *cp != '\0' && cp < el->el_line.limit; cp++) {
555 if (el_match(cp, ocp)) {
557 el->el_line.cursor = cp;
599 Char *cp;
616 cp = el->el_line.cursor;
618 if ((Int)*cp == ch)
619 cp += direction;
620 for (;;cp += direction) {
621 if (cp >= el->el_line.lastchar)
623 if (cp < el->el_line.buffer)
625 if ((Int)*cp == ch)
631 cp -= direction;
633 el->el_line.cursor = cp;