22 #ifndef _BLAZE_UTIL_INPUTSTRING_H_
23 #define _BLAZE_UTIL_INPUTSTRING_H_
70 explicit inline InputString(
const char*
string=
"" );
71 explicit inline InputString(
const std::string&
string );
102 inline const char*
c_str()
const;
103 inline const std::string&
str()
const;
106 inline bool empty()
const;
158 : buffer_( s.buffer_ )
346 if( s.
empty() )
return false;
347 else if( isalnum(s[0]) || s[0] ==
'.' || s[0] ==
'/' || s[0] ==
'_' )
return true;
363 return os << str.
str();
385 std::istream::pos_type pos( is.tellg() );
387 buffer.reserve( 20 );
391 if( !is.get( c ) || c !=
'"' ) {
394 is.setstate( std::istream::failbit );
401 if( !is.get( c ) || c ==
'\n' ) {
404 is.setstate( std::istream::failbit );
407 else if( c ==
'"' )
break;
409 buffer.push_back( c );