Changed legacy referernces to reg_expression to basic_regex

[SVN r26740]
This commit is contained in:
John Maddock
2005-01-19 13:29:43 +00:00
parent b7cb69bae3
commit 018fbfec05
2 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ int main(int argc, char**argv)
// cache load:
regex_search(s2, sm, ex);
// measure time interval for reg_expression<char>
// measure time interval for basic_regex<char>
do{
iters *= (tim > 0.001) ? (1.1/tim) : 100;
t.restart();
@ -283,7 +283,7 @@ int main(int argc, char**argv)
}
#endif
// measure time interval for reg_expression<char> using a deque
// measure time interval for basic_regex<char> using a deque
iters = 10;
tim = 1.1;
// cache load:

View File

@ -17,7 +17,7 @@ namespace bl{
double time_match(const std::string& re, const std::string& text, bool icase)
{
boost::reg_expression<char, boost::cpp_regex_traits<char> > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl));
boost::basic_regex<char, boost::cpp_regex_traits<char> > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl));
boost::smatch what;
boost::timer tim;
int iter = 1;
@ -55,7 +55,7 @@ bool dummy_grep_proc(const boost::smatch&)
double time_find_all(const std::string& re, const std::string& text, bool icase)
{
boost::reg_expression<char, boost::cpp_regex_traits<char> > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl));
boost::basic_regex<char, boost::cpp_regex_traits<char> > e(re, (icase ? boost::regex::perl | boost::regex::icase : boost::regex::perl));
boost::smatch what;
boost::timer tim;
int iter = 1;