Re: [pcre-dev] Partial matching in PCRE

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: ND
CC: pcre-dev
Tárgy: Re: [pcre-dev] Partial matching in PCRE
On Tue, 1 Sep 2009, ND wrote:

> Thanx for great work.
> I read the changelog but dont find, that last bumpalong offset is
> returned. Is there?


Yes it is.

9.  The restrictions on what a pattern can contain when partial matching is
    requested for pcre_exec() have been removed. All patterns can now be 
    partially matched by this function. In addition, if there are at least two
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    slots in the offset vector, the offsets of the first-encountered partial
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    match are set in them when PCRE_ERROR_PARTIAL is returned.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Philip

--
Philip Hazel