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

Top Page
Delete this message
Author: ND
Date:  
To: Pcre-dev
New-Topics: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
Subject: 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.