Lines Matching refs:p

59 #define UCHARAT(p)	((int)*(char_u *)(p))  argument
404 char_u *p = *pp; in get_equi_class() local
406 if (p[1] == '=' && p[2] != NUL) in get_equi_class()
409 l = (*mb_ptr2len)(p + 2); in get_equi_class()
410 if (p[l + 2] == '=' && p[l + 3] == ']') in get_equi_class()
413 c = mb_ptr2char(p + 2); in get_equi_class()
415 c = p[2]; in get_equi_class()
458 char_u *p = *pp; in get_coll_element() local
460 if (p[0] != NUL && p[1] == '.' && p[2] != NUL) in get_coll_element()
463 l = (*mb_ptr2len)(p + 2); in get_coll_element()
464 if (p[l + 2] == '.' && p[l + 3] == ']') in get_coll_element()
467 c = mb_ptr2char(p + 2); in get_coll_element()
469 c = p[2]; in get_coll_element()
493 skip_anyof(char_u *p) in skip_anyof() argument
497 if (*p == '^') // Complement of range. in skip_anyof()
498 ++p; in skip_anyof()
499 if (*p == ']' || *p == '-') in skip_anyof()
500 ++p; in skip_anyof()
501 while (*p != NUL && *p != ']') in skip_anyof()
503 if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1) in skip_anyof()
504 p += l; in skip_anyof()
506 if (*p == '-') in skip_anyof()
508 ++p; in skip_anyof()
509 if (*p != ']' && *p != NUL) in skip_anyof()
510 MB_PTR_ADV(p); in skip_anyof()
512 else if (*p == '\\' in skip_anyof()
514 && (vim_strchr(REGEXP_INRANGE, p[1]) != NULL in skip_anyof()
515 || (!reg_cpo_lit && vim_strchr(REGEXP_ABBR, p[1]) != NULL))) in skip_anyof()
516 p += 2; in skip_anyof()
517 else if (*p == '[') in skip_anyof()
519 if (get_char_class(&p) == CLASS_NONE in skip_anyof()
520 && get_equi_class(&p) == 0 in skip_anyof()
521 && get_coll_element(&p) == 0 in skip_anyof()
522 && *p != NUL) in skip_anyof()
523 ++p; // it is not a class name and not NUL in skip_anyof()
526 ++p; in skip_anyof()
529 return p; in skip_anyof()
557 char_u *p = skip_regexp(startp, delim, magic); in skip_regexp_err() local
559 if (*p != delim) in skip_regexp_err()
564 return p; in skip_regexp_err()
585 char_u *p = startp; in skip_regexp_ex() local
593 for (; p[0] != NUL; MB_PTR_ADV(p)) in skip_regexp_ex()
595 if (p[0] == dirc) // found end of regexp in skip_regexp_ex()
597 if ((p[0] == '[' && mymagic >= MAGIC_ON) in skip_regexp_ex()
598 || (p[0] == '\\' && p[1] == '[' && mymagic <= MAGIC_OFF)) in skip_regexp_ex()
600 p = skip_anyof(p + 1); in skip_regexp_ex()
601 if (p[0] == NUL) in skip_regexp_ex()
604 else if (p[0] == '\\' && p[1] != NUL) in skip_regexp_ex()
606 if (dirc == '?' && newp != NULL && p[1] == '?') in skip_regexp_ex()
613 p = *newp + (p - startp); in skip_regexp_ex()
618 STRMOVE(p, p + 1); in skip_regexp_ex()
620 ++p; in skip_regexp_ex()
623 ++p; // skip next character in skip_regexp_ex()
624 if (*p == 'v') in skip_regexp_ex()
626 else if (*p == 'V') in skip_regexp_ex()
632 return p; in skip_regexp_ex()
772 char_u *p = regparse + 1; in peekchr() local
776 while (p[0] == '\\' && (p[1] == 'c' || p[1] == 'C' in peekchr()
777 || p[1] == 'm' || p[1] == 'M' in peekchr()
778 || p[1] == 'v' || p[1] == 'V' || p[1] == 'Z')) in peekchr()
780 if (p[1] == 'v') in peekchr()
782 else if (p[1] == 'm' || p[1] == 'M' || p[1] == 'V') in peekchr()
784 p += 2; in peekchr()
786 if (p[0] == NUL in peekchr()
787 || (p[0] == '\\' in peekchr()
788 && (p[1] == '|' || p[1] == '&' || p[1] == ')' in peekchr()
789 || p[1] == 'n')) in peekchr()
791 && (p[0] == '|' || p[0] == '&' || p[0] == ')')) in peekchr()
1440 char_u *p; in match_with_backref() local
1466 p = reg_getline(clnum); in match_with_backref()
1470 len = (int)STRLEN(p + ccol); in match_with_backref()
1472 if (cstrncmp(p + ccol, rex.input, &len) != 0) in match_with_backref()
1649 char_u *p; in cstrchr() local
1670 for (p = s; *p != NUL; p += (*mb_ptr2len)(p)) in cstrchr()
1674 if (utf_fold(utf_ptr2char(p)) == cc) in cstrchr()
1675 return p; in cstrchr()
1677 else if (*p == c || *p == cc) in cstrchr()
1678 return p; in cstrchr()
1683 for (p = s; *p != NUL; ++p) in cstrchr()
1684 if (*p == c || *p == cc) in cstrchr()
1685 return p; in cstrchr()
1753 char_u *p; in regtilde() local
1757 for (p = newsub; *p; ++p) in regtilde()
1759 if ((*p == '~' && magic) || (*p == '\\' && *(p + 1) == '~' && !magic)) in regtilde()
1769 len = (int)(p - newsub); // not including ~ in regtilde()
1775 ++p; // back off backslash in regtilde()
1776 STRCPY(tmpsub + len + prevlen, p + 1); in regtilde()
1781 p = newsub + len + prevlen; in regtilde()
1785 STRMOVE(p, p + 1); // remove '~' in regtilde()
1787 STRMOVE(p, p + 2); // remove '\~' in regtilde()
1788 --p; in regtilde()
1792 if (*p == '\\' && p[1]) // skip escaped characters in regtilde()
1793 ++p; in regtilde()
1795 p += (*mb_ptr2len)(p) - 1; in regtilde()