commit | 26202760a43fbfc5b74218951a7379b70e6f5d4c | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Wed Jun 18 11:50:51 2014 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jun 18 15:14:00 2014 +0200 |
tree | ef96423b30bcc7dd9baa95ff25b0e17b2238100c | |
parent | c9c2daf283011e9b9ab0af57629af47862e14e0e [diff] |
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.