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

トップ ページ
このメッセージを削除
著者: ND
日付:  
To: Pcre-dev
新しいトピック: Re: [pcre-dev] First slot of the offset vector have a wrong value when PCRE_ERROR_SHORTUTF8 rises
題目: 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.