incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@gmail.com>
Subject Re: RegExp replacement (was Re: Some more strange files in the OOo code)
Date Thu, 23 Jun 2011 19:58:04 GMT
On Thu, Jun 23, 2011 at 15:39, Pedro F. Giffuni <giffunip@tutopia.com> wrote:
>
> --- On Thu, 6/23/11, Mathias Bauer <Mathias_Bauer@gmx.net> wrote:
> ...
>
>>
>> You are talking about the list of external source tarballs?
>
> Yes, my mailer ate the original reply, sorry.
>
> Anyways ...
>
> I looked at the RegExp stuff, as I promised.
>
> OpenOffice has a C++ interface to GNU regex so Google's
> RE2 seemed like a natural fit there. Unfortunately I see
> TextSearch::RESrchBkwrd in textsearch.cxx so I assume we
> need backreferences. The Re2 website says:
>
> "If you absolutely need backreferences and generalized
> assertions, then RE2 is not for you, but you might be
> interested in irregexp, Google Chrome's regular expression
> engine."
>
> irregexp replaced PCRE and is mentioned here:
> http://blog.chromium.org/2009/02/irregexp-google-chromes-new-regexp.html
>
> And the code, integrated in chrome's v8, is here:
> http://v8.googlecode.com/svn/trunk/src/ regex-*
>
> It's also C++ and it's under a BSD license. I couldn't find
> it as an independent package so someone that actually knows
> well C++ will have to do the fun part. Well, at least it's
> much better than writing our own ;-).

PCRE also has C++ wrappers, and *is* packaged up and delivered as a library.

Cheers,
-g

Mime
View raw message