Re: [pcre-dev] Return last bumpalong offset in partial_hard …

Góra strony
Delete this message
Autor: Zoltán Herczeg
Data:  
Dla: pcre-dev
CC: pcre-dev
Temat: Re: [pcre-dev] Return last bumpalong offset in partial_hard matching
> The returned offset is 4, and pcretest uses this value to show the exact
> string that was partially matched. I can see that, having only that
> value plus the max lookbehind of 3 means that the application will
> compute the offset of the characters to save as 4-3 = 1, when in fact
> the optimum value is 4. Providing the bumpalong offset of 7 makes it
> possible to compute 7-3 = 4.


Ok, so this is basically for visualizing the result. I didn't think about that. But seems viable. An editor can highlight the possible result for example. Thanks for the explanation. By the way, what is the second value in the ovector?

Regards,
Zoltan