X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=grep.cpp;h=68ecf874f46b919306c703f5e6fc07c2af4b5249;hp=07743072be997253e83356cd5704ea414be7c282;hb=refs%2Fheads%2Fstrings-master;hpb=47df471884234130a2a27f0a5fc842df3f994a3e diff --git a/grep.cpp b/grep.cpp index 0774307..68ecf87 100644 --- a/grep.cpp +++ b/grep.cpp @@ -2,19 +2,19 @@ #include #include #include -#include "regex.h" +#include using namespace std; using namespace Msp; int main(int argc, char **argv) { - bool debug=false; + bool debug = false; GetOpt getopt; getopt.add_option('d', "debug", debug, GetOpt::NO_ARG); getopt(argc, argv); - const vector &args=getopt.get_args(); + const vector &args = getopt.get_args(); if(args.empty()) { @@ -28,7 +28,7 @@ int main(int argc, char **argv) string line; while(getline(cin, line)) { - if(RegMatch match=regex.match(line)) + if(RegMatch match = regex.match(line)) cout<