Re: [pcre-dev] PCRE with UTF-8

トップ ページ
このメッセージを削除
著者: Manohar S
日付:  
To: pcre-dev
題目: Re: [pcre-dev] PCRE with UTF-8
Hi,
I have attached the actual string for which ovector is not filled up
properly.
It seems my UTF-8 characters are not shown in the mail properly.
Please find the attachment with proper UTF-8 text.

waiting for your reply,
Manohar.s

On Thu, Jun 26, 2008 at 8:32 PM, Philip Hazel <ph10@???> wrote:

> On Tue, 17 Jun 2008, Manohar S wrote:
>
> > hi sorry for the very late reply.
> > The pattern is as you have given earlier..
> > pattern = [\'\"][\x{80}-\x{ffff}a-zA-Z0-9]+[\'\"];
> > String = "select * from account where a =
> 'ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ';"
> >
> > and string actually read from a file and it will be read in UTF-8 form..
>
> I need to see the actual string in order to be able to run proper tests.
>
> > then i am doin pcre_compile and pcre_exec with PCRE_UTF8.
> > the RC got is 1, but ovector[0] and ovector[1] are filled with 0 :(..
>
> ... which might mean that it matched an empty string.
>
> Philip
>
> --
> Philip Hazel

pattern = [\'\"][\x{80}-\x{ffff}a-zA-Z0-9]+[\'\"];
String = "select * from account where a = 'ਠਡਢಉಉವಷಡಢಣತಥವಷಡಢಣತಥ';"