Re: [pcre-dev] PCRE2: Unnecessary substring number checks?

Startseite
Nachricht löschen
Autor: Ralf Junker
Datum:  
To: pcre-dev
Betreff: Re: [pcre-dev] PCRE2: Unnecessary substring number checks?
On 10.12.2014 12:30, ph10@??? wrote:

>> In addition, the code snippet makes pcre2_match_data depend on pcre2_code. If
>> pcre2_code is freed before pcre2_match_data, the outcome of the code snipped
>> is undetermined. I have searched the documentation, but have not found it
>> mentioning this.
>
> That is a good point. The documentation should tell you not to free the
> code while still making use of the match data.


pcre2api.html currently states the opposite:

"A match data block can be used many times, with the same or different
compiled patterns."

Given my findings, this is explicitly NOT true then.

However, it would be nice if it was. Any chance it could be?

Ralf