logo       

Re: Re: solaris gcc 3.2 stlport regexp (bug?): msg#00275

lib.boost.user

Subject: Re: Re: solaris gcc 3.2 stlport regexp (bug?)

> Does the regexp work on other compilers?

Yes, I've tried with C++ Builder 6.1 with codeguard support enabled
(Borland's memory checking utility), and everything passes OK with the
following test program, can you verify that the program reproduces your
problem, and if not provide one that does. Many thanks,

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm

test code:


#include <iostream>
#include "boost/regex.hpp"

int main(int, char**) {
boost::regex
abc("(\\w+)=(\\{|\"([^\\t\\n\\r\\f\"].*)\"|([^\\t\\n\\r\\f]+))|\\}|\\{");
std::string s("field_name=\"field value \" ");
boost::smatch what;
boost::regex_search(s, what, abc);
std::cout << (std::string)what[0] << std::endl;
s = "sub_message_name={";
boost::regex_search(s, what, abc);
std::cout << (std::string)what[0] << std::endl;
return 0;
}



Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe@xxxxxxxxxxxxxxx>


Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise