From ec05778d5718a7912e506764d443a78d6a6179e3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Nov 2012 22:41:51 +0000 Subject: Converted tabs to spaces with tabconv. --- src/stable/stream.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/stable/stream.cpp') diff --git a/src/stable/stream.cpp b/src/stable/stream.cpp index 23a7f0f..551d657 100644 --- a/src/stable/stream.cpp +++ b/src/stable/stream.cpp @@ -17,37 +17,37 @@ Bu::Stream::~Stream() Bu::String Bu::Stream::readLine() { - Bu::String sRet; - - for(;;) - { - char s; - if( read( &s, 1 ) == 0 ) - return sRet; - if( s == '\n' || s == '\r' ) - return sRet; - sRet.append( s ); - } + Bu::String sRet; + + for(;;) + { + char s; + if( read( &s, 1 ) == 0 ) + return sRet; + if( s == '\n' || s == '\r' ) + return sRet; + sRet.append( s ); + } } Bu::String Bu::Stream::readAll() { - Bu::String sRet; - char buf[4096]; - - while( !isEos() ) - { - int iRead = read( buf, 4096 ); - if( iRead == 0 ) - return sRet; - sRet.append( buf, iRead ); - } - - return sRet; + Bu::String sRet; + char buf[4096]; + + while( !isEos() ) + { + int iRead = read( buf, 4096 ); + if( iRead == 0 ) + return sRet; + sRet.append( buf, iRead ); + } + + return sRet; } Bu::size Bu::Stream::write( const Bu::String &sBuf ) { - return write( sBuf.getStr(), sBuf.getSize() ); + return write( sBuf.getStr(), sBuf.getSize() ); } -- cgit v1.2.3