Am Samstag, den 14.10.2017, 18:14 +0200 schrieb Enrico Forestieri:
> On Sat, Oct 14, 2017 at 05:06:14PM +0200, Jürgen Spitzmüller wrote:
> > 
> > I'd be interested in the output of the attached debug code.
> 
> Here you go (actually, I get this twice):
> 
> BiblioInfo.cpp (253): match 0: %prename% {%prefix%[[%prefix%
> ]]}%surname%
> BiblioInfo.cpp (253): match 1: %prename%
> BiblioInfo.cpp (253): match 2: {%prefix%[[
> BiblioInfo.cpp (253): match 3: %prefix%
> BiblioInfo.cpp (253): match 4: ]]}
> BiblioInfo.cpp (253): match 5: %surname%
> 
> So, everything seems fine, but 4 lines later "res += sub.str(5);"
> produces
> "%prename% %surnamP" again!

This is weird. 

What happens if you do

LYXERR0("test 1: " << sub.str(5));
string const test = sub.str(5);
LYXERR0("test 2: " << test);

> 
> > Another thing to try might be if the same problem occurs with
> > boost::regex.
> 
> It doesn't seem so straightforward switching to boost.

OK.

Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to