PLearn 0.1
Functions
numeric_filter.cc File Reference
#include <plearn/base/general.h>
#include <plearn/io/TypesNumeriques.h>
Include dependency graph for numeric_filter.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 8 of file numeric_filter.cc.

References PLearn::endl(), PLearn::looksNumeric(), and PLERROR.

{
    if (argc != 1)
        PLERROR("usage : numeric_filter < in.text > filtered_out.text");
    string word;
    while (true)
    {
        cin >> word;
        if (!cin) break;
        if (looksNumeric(word.c_str()))
            //cout << "<numeric>" << " : " << word << endl;
            cout << "<numeric>" << endl;
        else
            cout << word << endl;
    }
}

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines