Lines Matching defs:cp
747 char *cp;
749 cp = filter;
751 if (cp == NULL || *cp == '\0') {
756 if ((elm = ldap_do_parse_search_filter(ber, &cp)) == NULL)
759 if (*cp != '\0') {
777 * when cp is passed to a recursive invocation, it is updated
779 * i.e., cp jumps to "(filter)" upon return
789 char *attr_desc, *attr_val, *parsed_val, *cp;
796 cp = *cpp;
797 if (*cp != '(')
800 switch (*++cp) {
803 if (*cp == '&')
813 if (*++cp != '(') /* opening `(` of filter */
816 while (*cp == '(') {
818 ldap_do_parse_search_filter(elm, &cp)) == NULL)
822 if (*cp != ')') /* trailing `)` of filter */
831 cp++; /* now points to sub-filter */
832 if ((elm = ldap_do_parse_search_filter(root, &cp)) == NULL)
835 if (*cp != ')') /* trailing `)` of filter */
840 attr_desc = cp;
842 len = strcspn(cp, "()<>~=");
843 cp += len;
844 switch (*cp) {
847 cp++;
851 cp++;
855 cp++;
865 attr_val = ++cp;
869 cp++; /* point to trailing `)` */
886 if (len == 0 && *cp != '*')
888 cp += len;
889 if (*cp == '\0')
892 if (*cp == '*') { /* substring filter */
895 cp = attr_val;
902 for (initial = 1;; cp++, initial = 0) {
903 attr_val = cp;
907 if (*cp == ')')
912 cp += len;
913 if (*cp == '\0')
918 else if (*cp == ')')
947 cp++; /* now points one char beyond the trailing `)` */
949 *cpp = cp;