Added SvStream::ReadLine( rtl::OString& )
This commit is contained in:
parent
1123974f67
commit
7ae4abd293
2 changed files with 12 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
#include <tools/errinf.hxx>
|
||||
#include <tools/ref.hxx>
|
||||
#include <tools/rtti.hxx>
|
||||
#include <rtl/string.hxx>
|
||||
|
||||
class FileCopier;
|
||||
class StreamData;
|
||||
|
@ -403,6 +404,7 @@ public:
|
|||
sal_Bool ReadCString( String& rStr ) { return ReadCString( rStr, GetStreamCharSet()); }
|
||||
|
||||
sal_Bool ReadLine( ByteString& rStr );
|
||||
sal_Bool ReadLine( rtl::OString& rStr );
|
||||
sal_Bool WriteLine( const ByteString& rStr );
|
||||
sal_Bool WriteLines( const ByteString& rStr );
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
|
||||
#include <tools/solar.h>
|
||||
|
||||
|
||||
#define SWAPNIBBLES(c) \
|
||||
unsigned char nSwapTmp=c; \
|
||||
nSwapTmp <<= 4; \
|
||||
|
@ -719,6 +720,15 @@ sal_Bool SvStream::ReadLine( ByteString& rStr )
|
|||
return bEnd;
|
||||
}
|
||||
|
||||
sal_Bool SvStream::ReadLine( rtl::OString& rStr )
|
||||
{
|
||||
ByteString aFoo;
|
||||
sal_Bool ret;
|
||||
ret = ReadLine(aFoo);
|
||||
rStr = aFoo;
|
||||
return ret;
|
||||
}
|
||||
|
||||
sal_Bool SvStream::ReadUniStringLine( String& rStr )
|
||||
{
|
||||
sal_Unicode buf[256+1];
|
||||
|
|
Loading…
Reference in a new issue