Searched refs:mimetype_len (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/main/
H A DSAPI.c314 uint mimetype_len, charset_len; local
318 mimetype_len = (uint)strlen(SG(default_mimetype));
321 mimetype_len = sizeof(SAPI_DEFAULT_MIMETYPE) - 1;
334 *len = prefix_len + mimetype_len + sizeof("; charset=") - 1 + charset_len;
337 memcpy(p, mimetype, mimetype_len);
338 p += mimetype_len;
343 *len = prefix_len + mimetype_len;
345 memcpy(content_type + prefix_len, mimetype, mimetype_len + 1);
/PHP_TRUNK/ext/iconv/
H A Diconv.c403 int output_status, mimetype_len = 0; local
416 mimetype_len = (int)(s - SG(sapi_headers).mimetype);
427 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%.*s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, (size_t)(p - get_output_encoding()), get_output_encoding());
429 len = spprintf(&content_type, 0, "Content-Type:%.*s; charset=%s", mimetype_len ? mimetype_len : (size_t) strlen(mimetype), mimetype, get_output_encoding());

Completed in 13 milliseconds