]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
regex: Add ap_regexec_ex() which can take a starting offset to match from.
authorYann Ylavic <ylavic@apache.org>
Tue, 16 Jan 2024 16:51:03 +0000 (16:51 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 16 Jan 2024 16:51:03 +0000 (16:51 +0000)
commite52a206008bdfced5551206d695b3c01b7d1948a
tree1a31dee4ba5d1e368bccbb2d7d04e36b02ec1163
parentc9028584a89a761e2804b596ce2c9f961f5b6fb8
regex: Add ap_regexec_ex() which can take a starting offset to match from.

* include/ap_mmn.h:
  Bump MMN minor.

* include/ap_regex.h:
  Declare ap_regexec_ex().

* server/util_pcre.c(ap_regexec, ap_regexec_len, ap_regexec_ex):
  Reuse existing ap_regexec_len() code to implement ap_regexec_ex() where the
  offset is given instead of zero, then implement ap_regexec{,len}() in terms
  of ap_regexec_ex().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1915267 13f79535-47bb-0310-9956-ffa450edef68
include/ap_mmn.h
include/ap_regex.h
server/util_pcre.c