From: Ian L. T. <ia...@go...> - 2010-06-03 17:05:57
|
Vadim Zeitlin <vz...@ze...> writes: > 3. Use C++ tr1/std::regex class. The main advantage of this is that this is > something that will be available in all C++ compilers some day and so we > don't have anything to do to maintain/build/distribute it. The main > problem is that this day is not there just yet and currently you need > g++ >= 4.3 to have it (or MSVC 2010 but this doesn't really help SWIG > much). I don't know if using g++ 4.3 is acceptable but if it is, I think > this would be by far the simplest thing to do. Note that g++ only appears to have a std::tr1::regex class. Even in gcc 4.5 it does not actually work. Another regex library is http://code.google.com/p/re2/ . Ian |