httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <>
Subject passing bucket data to pcre
Date Wed, 30 Apr 2003 17:05:30 GMT


   Somebody from Tivoli sent me a question about passing data retrieved
from a bucket with apr_bucket_read() to pcre by way of ap_regexec().  The
problem, apparently, is that since ap_regexec()'s API does not allow
passing a length, it must assume that the string you pass it is
null-terminated, which of course bucket data is not.  Having to copy the
data just to stick a null on the end would suck... so it would seem that
the logical thing to do is add an additional function to the API,
something like ap_regexecn(), that also takes a length parameter.


View raw message