Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Regular Expressions in C++

8 views
Skip to first unread message

Roddy Pratt

unread,
Jul 4, 2008, 8:15:46 AM7/4/08
to
I was suprised to find that RADStudio 2007 includes PCRE regex
functions in the library! This isn't mentioned in the Help at all...

What concerns me is that the version included seems to be pretty
ancient, and bears the dreaded word "Inprise" in some of the files...

What's the current 'best practice' for regexes in C++Builder - Use the
supplied library? Use with the newest GNU PRCE dll? Boost? or something
different entirely?

- Roddy


Chris Uzdavinis (TeamB)

unread,
Jul 7, 2008, 9:05:07 AM7/7/08
to
"Roddy Pratt" <sp...@spam.spam.spam> writes:

> What's the current 'best practice' for regexes in C++Builder - Use the
> supplied library? Use with the newest GNU PRCE dll? Boost? or something
> different entirely?

I'd suggest using Boost if <tr1/regexp> isn't available. Boost most
closely matches what is in standard C++, so if you want to have the
least amount of hassle and porting issues. Well, that assumes that
boost works well with this compiler. I don't know the current state
of things in this regard.

(Does C++Builder have tr1 support? Since it ships with Dinkumware's
STL I would expect it does, but am not certain about that.)

--
Chris (TeamB);

David Dean [CodeGear]

unread,
Jul 7, 2008, 4:18:19 PM7/7/08
to
In article <86abgt4...@explicit.atdesk.com>,

"Chris Uzdavinis (TeamB)" <ch...@atdesk.com> wrote:

> (Does C++Builder have tr1 support? Since it ships with Dinkumware's
> STL I would expect it does, but am not certain about that.)

We have not shipped a TR1 library to date.
--
David Dean (CodeGear)
Lead C++ QA Engineer

Chris Uzdavinis (TeamB)

unread,
Jul 7, 2008, 6:55:26 PM7/7/08
to
"David Dean [CodeGear]" <david....@spam.codegear.com> writes:

> In article <86abgt4...@explicit.atdesk.com>,
> "Chris Uzdavinis (TeamB)" <ch...@atdesk.com> wrote:
>
>> (Does C++Builder have tr1 support? Since it ships with Dinkumware's
>> STL I would expect it does, but am not certain about that.)
>
> We have not shipped a TR1 library to date.


Ah, ok. I haven't been able to follow product-specific details very
closely as of late....

Then Boost is probably the best library to use for c++ regexp, unless
one has specific needs for using the PCRE library. (And then, a newer
version most likely.)

--
Chris (TeamB);

0 new messages