]> git.tdb.fi Git - libs/core.git/blobdiff - grep.cpp
Remove some stray Id tags
[libs/core.git] / grep.cpp
index 07743072be997253e83356cd5704ea414be7c282..c87ee72171615ec8056adcf687f8f0e74d78b621 100644 (file)
--- a/grep.cpp
+++ b/grep.cpp
@@ -1,20 +1,19 @@
-/* $Id$ */
 #include <iostream>
 #include <string>
 #include <msp/core/getopt.h>
-#include "regex.h"
+#include <msp/strings/regex.h>
 
 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<string> &args=getopt.get_args();
+       const vector<string> &args = getopt.get_args();
 
        if(args.empty())
        {
@@ -28,7 +27,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<<line<<'\n';
        }