Lines Matching refs:len
96 apr_size_t len = hlen;
100 while ( (hay = memchr(hay, ndl[0], len)) ) {
101 len = end - hay;
104 if ( memcmp(hay, ndl, MIN(nlen, len)) == 0 ) {
105 if (type == APREQ_MATCH_FULL && len < nlen)
109 --len;
433 apr_size_t len = 0;
445 len = (const char *)d - s;
447 slen -= len;
462 apr_size_t slen, len;
465 switch (status = url_decode(d, &len, v[n].iov_base, &slen)) {
468 d += len;
469 *dlen += len;
474 d += len;
475 *dlen += len;
487 *dlen += len;
527 static int is_quoted(const char *p, const apr_size_t len)
529 if (len > 1 && p[0] == '"' && p[len-1] == '"') {
533 for (i = 1; i < len - 1; i++) {
603 apr_size_t len, slen;
615 for (j=0, len=0; j < n; ++j)
616 len += a[j]->dlen + slen + 1;
622 len += 2 * len;
625 len = 2 * (len + n);
633 rv = apr_palloc(p, len);
652 if (apreq_decode(d, &len, a[0]->data, a[0]->dlen))
655 d += len;
661 if (apreq_decode(d, &len, a[j]->data, a[j]->dlen))
664 d += len;
705 apr_size_t len;
713 s = apr_file_writev(f, v, *nelts, &len);
715 *bytes_written += len;
731 while (n < *nelts && len >= (apr_size_t)v[n].iov_len)
737 while (n < *nelts && len >= v[n].iov_len)
744 while (n < *nelts && len >= v[n].iov_len)
746 len -= v[n++].iov_len;
755 v[n].iov_len -= len;
756 v[n].iov_base = (char *)(v[n].iov_base) + len;
769 if (len == 0)
953 apr_size_t *len, apr_read_type_e block)
955 return apr_bucket_type_file.read(e, str, len, block);
1135 apr_size_t len;
1137 s = apreq_fwritev(f, v, &n, &len);
1146 *wlen += len;
1149 &len, APR_BLOCK_READ);
1153 v[n++].iov_len = len;
1157 apr_size_t len;
1158 s = apreq_fwritev(f, v, &n, &len);
1161 *wlen += len;