Added support for "format_first_only" new format flag

[SVN r10119]
This commit is contained in:
John Maddock committed 2001-05-17 11:55:55 +00:00
1 parent f466b2ad2a
commit 04b11fdd1c
7 files changed
+421 -373

No files matched your search

+7 -2
View File
@@ -57,8 +57,9 @@ void load_file(std::string& s, std::istream& is)
int main(int argc, const char** argv)
{
e1.set_expression(expression_text);
e2.set_expression(pre_expression);
try{
e1.assign(expression_text);
e2.assign(pre_expression);
for(int i = 1; i < argc; ++i)
{
std::cout << "Processing file " << argv[i] << std::endl;
@@ -80,6 +81,9 @@ int main(int argc, const char** argv)
boost::regex_merge(out, s.begin(), s.end(), e1, format_string);
os << footer_text;
}
}
catch(...)
{ return -1; }
return 0;
}
@@ -129,3 +133,4 @@ const char* footer_text = "</PRE>\n</BODY>\n\n";