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

Inizio della pagina
Delete this message
Autore: ND
Data:  
To: Pcre-dev
Nuovi argomenti: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
Oggetto: 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.