Lines Matching defs:range
766 * @return 1 if valid content-range,
767 * 0 if no content-range,
768 * -1 if malformed content-range
774 char *range;
779 range_c = apr_table_get(r->headers_in, "content-range");
783 range = apr_pstrdup(r->pool, range_c);
784 if (strncasecmp(range, "bytes ", 6) != 0
785 || (dash = ap_strchr(range, '-')) == NULL
786 || (slash = ap_strchr(range, '/')) == NULL) {
794 if (apr_strtoff(range_start, range + 6, &errp, 10)
812 /* we now have a valid range */
988 /* a range was provided. seek to the start */