can replace ScfTools::AppendCString with SvStream::ReadCString
This commit is contained in:
parent
a1c936ce53
commit
253576484f
2 changed files with 1 additions and 15 deletions
|
@ -310,22 +310,10 @@ ByteString ScfTools::ReadCString( SvStream& rStrm, sal_Int32& rnBytesLeft )
|
|||
return aRet.makeStringAndClear();
|
||||
}
|
||||
|
||||
void ScfTools::AppendCString( SvStream& rStrm, ByteString& rString )
|
||||
{
|
||||
sal_Char cChar;
|
||||
|
||||
rStrm >> cChar;
|
||||
while( cChar )
|
||||
{
|
||||
rString += cChar;
|
||||
rStrm >> cChar;
|
||||
}
|
||||
}
|
||||
|
||||
void ScfTools::AppendCString( SvStream& rStrm, String& rString, rtl_TextEncoding eTextEnc )
|
||||
{
|
||||
ByteString aByteString;
|
||||
AppendCString( rStrm, aByteString );
|
||||
rStrm.ReadCString(aByteString);
|
||||
rString += String( aByteString, eTextEnc );
|
||||
}
|
||||
|
||||
|
|
|
@ -248,8 +248,6 @@ public:
|
|||
inline static String ReadCString( SvStream& rStrm, sal_Int32& rnBytesLeft, rtl_TextEncoding eTextEnc )
|
||||
{ return String( ReadCString( rStrm, rnBytesLeft ), eTextEnc ); }
|
||||
|
||||
/** Appends a zero terminted byte string. */
|
||||
static void AppendCString( SvStream& rStrm, ByteString& rString );
|
||||
/** Appends a zero terminted byte string. */
|
||||
static void AppendCString( SvStream& rStrm, String& rString, rtl_TextEncoding eTextEnc );
|
||||
|
||||
|
|
Loading…
Reference in a new issue