util_regex.c

Checkout Tools
  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Follow up to r1873941: define AP_REG_NO_DEFAULT for raw ap_regcomp() usage.

This avoids having to define AP_REG_NO_* for each APR_REG_* specific option,

thus replacing AP_REG_NO_DOTALL introduced lately.

For ap_rxplus_compile() and mod_substitute where default AP_REG_DOTALL is not

suitable, let's use:

AP_REG_NO_DEFAULT | ap_regcomp_get_default_cflags() & AP_REG_DOLLAR_ENDONLY

to keep the default AP_REG_DOLLAR_ENDONLY unless RegexDefaultOptions unsets it.

  1. … 4 more files in changeset.
don't use DOTALL from mod_substitute which leaves \n at the end of the line.

  1. … 4 more files in changeset.
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to save a few cycles.
No need to test for NULL, apr_pstrndup already handles it.
Remove some useless declarations that were shadowing other local

variables of the same name.

  1. … 4 more files in changeset.
Fixed eol prop.

fix Sun Studio type mismatch warnings

Minor MMN bump for ap_rxplus API

  1. … 1 more file in changeset.
Remove cruft that accidentally got into r999533

Introduce ap_rxplus class: higher-level regexps supporting perl-style

regexp operations.

  1. … 4 more files in changeset.