Re: [pcre-dev] [Bug 760] New: Named patterns with same index…

Page principale
Supprimer ce message
Auteur: Philip Hazel
Date:  
À: 760
CC: pcre-dev
Sujet: Re: [pcre-dev] [Bug 760] New: Named patterns with same index conflict
On Fri, 12 Sep 2008, Stan Vassilev wrote:

> This bug is caused by the inability of PCRE to differentiate and/or report
> named subpatterns that share numerican index, through its current interface.


This is a classic case of adding a feature (switch group) without
realizing the effect it would have on other features (names).

> I'd suggest a flag is maintained internally or additional information / calls
> are introduced to handle this special case for named subpatterns in a switch
> group, so that implementers can report the correct name and fix this bug.


I will think about this - but as PCRE 7.8 is only just out, it will not
happen immediately. Incidentally, do you know what Perl 5.10 does in
this situation? (I don't yet have Perl 5.10).

Philip

--
Philip Hazel