Re: [boost] Inspect Tool Update (was: Boost regression testing, status)

29 Jul
2006
29 Jul
'06
7:41 p.m.
AMDG The following regular expression seems to cover all the cases: boost::regex min_max_regex( "((^\\s*#\\s*undef\\s*\\b(min|max)\\b)|" //#undef min/max "(\\b(min|max)\\b\\s*\\())|" //min/max(... "(\"[^\"]*\")|" //character array literals "(\'[^\']*\')|" //character literals "(/\\*.*?\\*/)|" // /**/ comments "(//.*?$)", // // comments boost::regex::normal ); There is an error iff match_results[1].matched is true. All that is required is to use regex_search instead of regex_iterator and to skip to the end of each match before continuing. In Christ, Steven Watanabe
6891
Age (days ago)
6891
Last active (days ago)
0 comments
1 participants
participants (1)
-
Steven Watanabe