Added regex iterator examples and docs, recovering from cvs repository crash...

[SVN r18361]
This commit is contained in:
John Maddock
2003-05-08 11:05:13 +00:00
parent 7321d18f08
commit 1c1ed068f4
19 changed files with 2173 additions and 21 deletions
+3 -2
View File
@@ -73,12 +73,12 @@ int main(int argc, const char** argv)
// temporary string stream
std::ostringstream t(std::ios::out | std::ios::binary);
std::ostream_iterator<char> oi(t);
boost::regex_replace(oi, in.begin(), in.end(), e2, pre_format);
boost::regex_replace(oi, in.begin(), in.end(), e2, pre_format, boost::match_default | boost::format_all);
// then output to final output stream
// adding syntax highlighting:
std::string s(t.str());
std::ostream_iterator<char> out(os);
boost::regex_replace(out, s.begin(), s.end(), e1, format_string);
boost::regex_replace(out, s.begin(), s.end(), e1, format_string, boost::match_default | boost::format_all);
os << footer_text;
}
}
@@ -135,3 +135,4 @@ const char* footer_text = "</PRE>\n</BODY>\n\n";