Re: [pcre-dev] Newline feature request

Página superior
Eliminar este mensaje
Autor: Sheri
Fecha:  
A: pcre-dev
Asunto: Re: [pcre-dev] Newline feature request
Philip Hazel wrote:
> On Tue, 10 Apr 2007, I wrote:
>
>
>> On Thu, 5 Apr 2007, Sheri wrote:
>>
>>
>>> Would you consider adding another newline type? One like "any" but which
>>> omits the unicode line ends, e.g.,:
>>>
>>> (?>\r\n|\n|\r)
>>>
>> Sigh. It could, of course be done, and I have noted the requirement.
>> I do so want to get 7.1 released as soon as we can, however, so it may
>> be later. On the other hand, I note there may be delays for other
>> reasons, so we'll see.
>>
>
> OK, we seem to have delayed a bit "for other reasons", and I wanted a
> change from working on Exim, so I have implemented PCRE_INFO_ANYCRLF. It
> will be in the next RC or the release itself. If you want it earlier,
> you can pull if from the SVN, where I have just committed it.
>
> Philip
>
>

Great! Thank you Philip.

I don't know how to get it from SVN. I tried this in my browser:
svn://sesame.csx.cam.ac.uk/pcre/
(didn't work).
I can ftp to sesame.csx.cam.ac.uk and see a pub folder, but don't see
pcre anywhere.

So I will wait for the next RC.

Are these valid assumptions on my part?

--enable-newline-is-anycrlf (for configure)
PCRE_NEWLINE_ANYCRLF (for compile and exec options)
PCRE_CONFIG_NEWLINE (what? unique return indicates anycrlf)
<anycrlf> in pcretest

Thanks,
Sheri