Re: [pcre-dev] First slot of the offset vector have a wrong …

Pàgina inicial
Delete this message
Autor: ND
Data:  
A: Pcre-dev
Assumptes nous: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
Assumpte: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
>Putting something other than a match start into the offsets vectorrather
> breaks the philosophy of PCRE.
>

It's useful to give to main application information about position when
PCRE_ERROR_BADUTF8 or PCRE_ERROR_SHORTUTF8 occurs. It must not be returned
in offsets vector nesessarily. May be in another memory block.
This information can help main application to analyze and fix erroneous
stream.