Lines Matching refs:p
406 const char *p = *ptr; in getalnum() local
407 while(*p && ISBLANK(*p)) in getalnum()
408 p++; in getalnum()
409 protop = p; in getalnum()
410 while(*p && !ISBLANK(*p) && (*p != ';') && (*p != '=')) in getalnum()
411 p++; in getalnum()
412 len = p - protop; in getalnum()
413 *ptr = p; in getalnum()
492 const char *p = value; in Curl_altsvc_parse() local
496 CURLcode result = getalnum(&p, alpnbuf, sizeof(alpnbuf)); in Curl_altsvc_parse()
516 if(*p == '=') { in Curl_altsvc_parse()
519 p++; in Curl_altsvc_parse()
520 if(*p == '\"') { in Curl_altsvc_parse()
531 p++; in Curl_altsvc_parse()
532 if(*p != ':') { in Curl_altsvc_parse()
534 const char *hostp = p; in Curl_altsvc_parse()
535 if(*p == '[') { in Curl_altsvc_parse()
537 dstlen = strspn(++p, "0123456789abcdefABCDEF:."); in Curl_altsvc_parse()
538 if(p[dstlen] != ']') in Curl_altsvc_parse()
543 p = &p[dstlen-1]; in Curl_altsvc_parse()
546 while(*p && (ISALNUM(*p) || (*p == '.') || (*p == '-'))) in Curl_altsvc_parse()
547 p++; in Curl_altsvc_parse()
548 dstlen = p - hostp; in Curl_altsvc_parse()
563 if(*p == ':') { in Curl_altsvc_parse()
565 p++; in Curl_altsvc_parse()
566 if(ISDIGIT(*p)) in Curl_altsvc_parse()
568 port = strtoul(p, &end_ptr, 10); in Curl_altsvc_parse()
570 end_ptr = (char *)p; /* not left uninitialized */ in Curl_altsvc_parse()
571 if(!port || port > USHRT_MAX || end_ptr == p || *end_ptr != '\"') { in Curl_altsvc_parse()
577 p = end_ptr; in Curl_altsvc_parse()
580 if(*p++ != '\"') in Curl_altsvc_parse()
585 while(ISBLANK(*p)) in Curl_altsvc_parse()
586 p++; in Curl_altsvc_parse()
587 if(*p != ';') in Curl_altsvc_parse()
589 p++; /* pass the semicolon */ in Curl_altsvc_parse()
590 if(!*p || ISNEWLINE(*p)) in Curl_altsvc_parse()
592 result = getalnum(&p, option, sizeof(option)); in Curl_altsvc_parse()
597 while(*p && ISBLANK(*p)) in Curl_altsvc_parse()
598 p++; in Curl_altsvc_parse()
599 if(*p != '=') in Curl_altsvc_parse()
601 p++; in Curl_altsvc_parse()
602 while(*p && ISBLANK(*p)) in Curl_altsvc_parse()
603 p++; in Curl_altsvc_parse()
604 if(!*p) in Curl_altsvc_parse()
606 if(*p == '\"') { in Curl_altsvc_parse()
608 p++; in Curl_altsvc_parse()
611 value_ptr = p; in Curl_altsvc_parse()
613 while(*p && *p != '\"') in Curl_altsvc_parse()
614 p++; in Curl_altsvc_parse()
615 if(!*p++) in Curl_altsvc_parse()
619 while(*p && !ISBLANK(*p) && *p!= ';' && *p != ',') in Curl_altsvc_parse()
620 p++; in Curl_altsvc_parse()
654 if(*p == ',') { in Curl_altsvc_parse()
656 p++; in Curl_altsvc_parse()
657 result = getalnum(&p, alpnbuf, sizeof(alpnbuf)); in Curl_altsvc_parse()
664 } while(*p && (*p != ';') && (*p != '\n') && (*p != '\r')); in Curl_altsvc_parse()