Lines Matching defs:cp
542 const char *cp, *mp;
560 cp = mp;
561 while (apr_isspace(*cp)) {
562 cp++;
564 if (!*cp) {
570 ctp->type = cp;
572 cp++;
573 } while (*cp && (*cp != '/') && !apr_isspace(*cp) && (*cp != ';'));
574 if (!*cp || (*cp == ';')) {
580 while (apr_isspace(*cp)) {
581 cp++;
583 if (*cp != '/') {
589 ctp->type_len = cp - ctp->type;
591 cp++; /* skip the '/' */
594 while (apr_isspace(*cp)) {
595 cp++;
597 if (!*cp) {
602 ctp->subtype = cp;
604 cp++;
605 } while (*cp && !apr_isspace(*cp) && (*cp != ';'));
606 ctp->subtype_len = cp - ctp->subtype;
607 while (apr_isspace(*cp)) {
608 cp++;
611 if (*cp == '\0') {
616 cp++; /* skip the ';' */
617 cp = zap_sp(cp);
618 if (cp == NULL || *cp == '\0') {
623 mp = cp;
627 while (cp != NULL && *cp != '\0') {
629 if (is_token(*cp) > 0) {
630 cp++;
633 else if (*cp == ' ' || *cp == '\t' || *cp == '\n') {
634 cp++;
637 else if (*cp == '=') {
638 attribute = zap_sp_and_dup(p, mp, cp, NULL);
644 cp++;
645 cp = zap_sp(cp);
646 if (cp == NULL || *cp == '\0') {
651 mp = cp;
661 if (mp == cp) {
662 if (*cp == '"') {
664 cp++;
671 while (quoted && *cp != '\0') {
672 if (is_qtext(*cp) > 0) {
673 cp++;
675 else if (is_quoted_pair(cp) > 0) {
676 cp += 2;
678 else if (*cp == '"') {
679 cp++;
680 while (*cp == ' ' || *cp == '\t' || *cp == '\n') {
681 cp++;
683 if (*cp != ';' && *cp != '\0') {
699 if (is_token(*cp) > 0) {
700 cp++;
702 else if (*cp == '\0' || *cp == ';') {
712 value = zap_sp_and_dup(p, mp, cp, NULL);
737 if (*cp == '\0') {
740 cp++;
741 mp = cp;