data/train/cpp/bbd23e970556d5d4fda7dc9ef8c3e9fbd9868999Tokenizer.cpp
std::string GetNumber( std::istream & stream ) {
		std::string number;
		if( stream.peek( ) >= '0' && stream.peek( ) <= '9' || stream.peek( ) == '-' || stream.peek( ) == '+' ) {
			number += stream.get( );
			for( ; stream.peek( ) >= '0' && stream.peek( ) <= '9' || stream.peek( ) == '.'; number += stream.get( ) );
		}
		return number;
	}
// reads the stream until a non-digit is found
reads the stream until a non-digit is found
reads the stream until a non - digit is found
std::string GetNumber( std::istream & stream ) {
		std::string number;
		if( stream.peek( ) >= '0' && stream.peek( ) <= '9' || stream.peek( ) == '-' || stream.peek( ) == '+' ) {
			number += stream.get( );
			for( ; stream.peek( ) >= '0' && stream.peek( ) <= '9' || stream.peek( ) == '.'; number += stream.get( ) );
		}
		return number;
	}
std :: string GetNumber ( std :: istream & stream ) { std :: string number ; if ( stream . peek ( ) >= ' ' && stream . peek ( ) <= ' ' || stream . peek ( ) == ' ' || stream . peek ( ) == ' ' ) { number += stream . get ( ) ; for ( ; stream . peek ( ) >= ' ' && stream . peek ( ) <= ' ' || stream . peek ( ) == ' ' ; number += stream . get ( ) ) ; } return number ; }
reads the stream until a non-digit is found
reads the stream until a non - digit is found