ParserBase.cc
/*
 * Consumes whitespace. Returns first non-whitespace character or 0
 * if end of stream.
 */
Consumes whitespace. Returns first non-whitespace character or 0
if end of stream.
Consumes whitespace . Returns first non - whitespace character or 0 if end of stream .
char ParserBase::chomp(std::istream& in) {
    char c;
    in.get(c);
    if (c < 0) {
        c = 0;
    }
    else if (WHITESPACE.find(c) != std::string::npos) {
        return chomp(in);
    }
    return c;
}
char ParserBase :: chomp ( std :: istream & in ) { char c ; in . get ( c ) ; if ( c < 0 ) { c = 0 ; } else if ( WHITESPACE . find ( c ) != std :: string :: npos ) { return chomp ( in ) ; } return c ; }
Consumes whitespace.
Consumes whitespace .