[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Fwd: Regular expression library choices
From: Rob Gillen <rgillen () webmd ! net>
Date: 2001-11-06 17:03:14
[Download RAW message or body]
Yep, I'd say you are correct on all accounts. I cannot comment on point
three and whether Regex++ would add any additional functionality beyond
what PCRE would as I have not had time to evaluate the PCRE library. My
goal (sort of) was to introduce the Boost library as an alternative, and
I was looking for some good arguments for or against it and not just a
rote dismissal. The Boost libraries are technically very good, and are
developed by some pretty smart people out there. However, as I
mentioned to the KFM-Devel mailing list (of which you should have been
CC'd) I did hear back from the author of the Regex++ library. It turns
out that I was somewhat ignorant of the differences between Perl matches
versus POSIX matches. Now that I've been schooled, I can say with a
pretty good degree of certainty that the Regex++ library isn't going to
offer the compatibility that will be required as per the ECMAScript-262
spec.
That said, I look forward to seeing RegExp objects in KJS. :)
Cheers,
Rob
Michael Bedy wrote:
> Hi,
>
> Sorry, sent the previous reply to kfm-devel instead of kde-devel.
>
> Anyway, I looked more closely at the documentation, and I see now that
> it does have most of the Perl stuff. It just depends which options you
> have selected. And it indeed does look like a nifty, full featured, C++
> regular expression library.
>
> But I can think of at least three reason why I think pcre is the better
> choice, at least in the context of KJS:
>
> 1) It is simple. The interface to pcre is very easy to use.
> Maintence is really a non-issue. KJS is not doing anything
> remotely fancy enough to require the flexibility BOOST allows.
>
> 2) It is widely available. True, BOOST is available to download, but
> given that pcre seems to get installed on just about every Linux
> box by default now I would say libpcre is more readily available.
>
> 3) libpcre is already used by KJS (and has been for some time.) I'm
> just finishing the support. In fact, it's working now on my
> machine. I'm just cleaning it up before I check it in. (Hopefully
> in a couple of days.) Switching to BOOST would be additional work
> for no functional gain as far as JavaScript regular
expressions are
> concerned. (Correct me if I'm wrong.)
>
> Don't get me wrong, I love whiz-bang C++ interfaces to things, and the
> BOOST stuff looks cool. I just don't think using it is the best solution
> in this case.
--
Rob Gillen
WebMD, Midtown-Atlanta
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic