Re: [pcre-dev] [Bug 1049] Add support for UTF-16

Top Page
Delete this message
Author: Zoltán Herczeg
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] [Bug 1049] Add support for UTF-16
I think this is an excellent idea. If Philip also supports it, I will do this.

Regards,
Zoltan

Ralf Junker <ralfjunker@???> írta:
>On 05.01.2012 08:39, Zoltán Herczeg wrote:>
>
>> One detriment to a combined 8+16 library is that it may be too easy>
>> to accidentally mis-code to the wrong 8/16 API and not have that>
>> caught during linkage.>
>>
> That is a strong reason. Ok I will leave it as it is now.>
>

Along the same lines, may I suggest to different pcre types, pcre (old)>
and pcre16 (new)?>
>

This should allow compilers to detect invalid 8-bit and 16-bit function>
calls like>
>

pcre* re;>
>

re = pcre16_compile (...); /* 16-bit */>
>

pcre_exec (re, ...); /* wrong 8-bit call */>
>

Ralf>