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

Kezdőlap
Üzenet törlése
Szerző: ND
Dátum:  
Címzett: Pcre-dev
Új témák: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
Tárgy: 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.