Re: [pcre-dev] Partial matching in PCRE

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: ND
CC: pcre-dev
Assumpte: 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