MINOR: regex: Use native PCRE API.
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 18 Jun 2014 09:50:51 +0000 (11:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Jun 2014 13:14:00 +0000 (15:14 +0200)
commit26202760a43fbfc5b74218951a7379b70e6f5d4c
treeef96423b30bcc7dd9baa95ff25b0e17b2238100c
parentc9c2daf283011e9b9ab0af57629af47862e14e0e
MINOR: regex: Use native PCRE API.

The pcreposix layer (in the pcre projetc) execute strlen to find
thlength of the string. When we are using the function "regex_exex*2",
the length is used to add a final \0, when pcreposix is executed a
strlen is executed to compute the length.

If we are using a native PCRE api, the length is provided as an
argument, and these operations disappear.

This is useful because PCRE regex are more used than POSIC regex.
include/common/regex.h
src/regex.c