19 Commits

Author SHA1 Message Date
Nicholas Wilson
ed69a3a70b Add pcre2_substitute checks to enforce pattern, subject, offset and options haven't changed (#807)
* Check for pattern/subject/offset/option changes when using PCRE2_SUBSTITUTE_MATCHED.
* Return PCRE2_ERROR_DFA_UFUNC if using PCRE2_SUBSTITUTE_MATCHED after a call to
  pcre2_dfa_match().
* Add new error codes to pcre2_substitute when using PCRE2_SUBSTITUTE_MATCHED.
* Change the behaviour of the matching methods so that the match_data fields are populated
  on all matches with "(rc >= 0 || rc==NO_MATCH || rc==PARTIAL)". We previously ensured that
  every call to a match method guarantees to set the rc field on the match_data.
* Add modifiers to pcre2test to better exercise these pcre2_substitute conditions

---------

Co-authored-by: Isaac Oscar Gariano <IsaacOscar@live.com.au>
2025-10-03 09:53:00 +01:00
Nicholas Wilson
cbfe089624 Automatic update of doc files #noupdate 2025-08-28 10:39:03 +00:00
Nicholas Wilson
e02e52804c Update release number to 10.46-DEV #noupdate (#667) 2025-01-12 15:28:37 +00:00
Nicholas Wilson
f15bdd334d Update all man page dates #noupdate (#634) 2024-12-18 14:12:58 +00:00
Carlo Marcelo Arenas Belón
587b94277b doc: formatting/typo fixes to documentation (#47)
* doc: fix incorrect use of JOIN and typo

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>

* doc: reformat of pcre2_substitute to align options

includes some rewording to fit better in an 80 char wide troff output.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>

* doc: update names to pcre2
2021-11-27 16:27:49 +00:00
Philip.Hazel
8b3f8af535 File tidies for 10.35-RC1 release candidate. 2020-04-15 16:34:36 +00:00
Philip.Hazel
e8d70e2459 Implement PCRE2_SUBSTITUTE_REPLACEMENT_ONLY. 2020-01-22 17:50:12 +00:00
Philip.Hazel
03720de840 Documentation update and another cunning test pattern. 2020-01-05 12:32:29 +00:00
Philip.Hazel
d170829b26 Implement PCRE2_SUBSTITUTE_MATCHED. 2019-12-27 13:35:17 +00:00
Philip.Hazel
f3fd8b18cb Implement PCRE2_SUBSTITUTE_LITERAL. 2019-12-26 14:53:24 +00:00
Philip.Hazel
810d9b6da5 Code tidies for 10.30-RC1 release candidate. 2017-07-19 16:04:15 +00:00
Philip.Hazel
a3275d1e0f Implement PCRE2_ENDANCHORED. 2017-04-04 17:09:33 +00:00
Philip.Hazel
95888402a0 Documentation update. 2017-03-26 15:44:09 +00:00
Philip.Hazel
dffd559601 File tidies, version updates, etc. for 10.21-RC1 2015-12-17 18:44:06 +00:00
Philip.Hazel
35e0f55783 Implement PCRE2_SUBSTITUTE_{OVERFLOW_LENGTH,UNKNOWN_UNSET}. 2015-12-12 18:45:40 +00:00
Philip.Hazel
925146d8cc Update forgotten document 2015-12-04 18:43:00 +00:00
Philip.Hazel
6ae5c36e83 Implement PCRE2_SUBSTITUTE_EXTENDED. 2015-10-07 17:32:48 +00:00
Philip.Hazel
161cd17ba0 Move context argument to last in pcre2_jit_stack_create(). 2014-11-28 12:46:16 +00:00
Philip.Hazel
b3ac0ffb32 Substitute code update and documentation. 2014-11-11 16:51:07 +00:00