RE: [Cppunit-devel] regular expression match
Brought to you by:
blep
From: Volker B. <vbo...@te...> - 2002-04-11 10:34:26
|
On Wed, 10 Apr 2002, Arlo Belshee wrote: > I've been using the boost libraries for a while, including their regexp > stuff. If you're looking for a regexp library, I'd recommend Boost's. I stumbled across the boost project searching for a regexp library but was pretty amazed that I never heard about this large and nice thing before. > In particular, it works well with STLPort, which means that the list of > currently supported platforms includes all Windows, Mac OS X, Mac OS > 6.something +, a few dozen Linux distros, most Unixes, Amiga, PS2, XBox, = and > so on. You don't have to worry about platform availability, although you = do > have to ensure that the developer installs the STLPort and Boost librarie= s. >=20 > Likewise, he boost regex was built with Unicode in mind. It performs all > matching using char_traits, so should internationalize as well as the res= t > of the STL (YMMV). It supports most digraphs, and matches umlauted, > accented, and otherwise modified characters correctly. I expect it to wor= k > with the Asian, Arabic and Hebrew languages, but don't really know. >=20 > Additionally, it uses a pretty full regex syntax, similar to Perl's. I > haven't found much missing, although the regex strings end up as even mor= e > line noise than they do in Perl, because you have to escape the backslash > character past the C++ processor any time that you put in an escape > sequence. Thank you for this evaluation! When I find the time I will implement an asserter using the boost-library and try to add the necessary autoconf stuff. As long as one makes the library selectable via configure this dependency should be acceptable I think. Regex matching would be an add-on and no basic functionality would depend on it. Regards, Volker --=20 Volker Boerchers <vbo...@te...> System Engineer TECON Systems AG, Perlengraben 2, 50676 K=F6ln, http://www.tecon.de Tel: +49-221-92007-55, Fax: +49-221-92007-77 |