Lines Matching refs:rStr
664 sal_Bool SvStream::ReadByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet ) in ReadByteStringLine() argument
670 rStr = UniString( aStr, eSrcCharSet ); in ReadByteStringLine()
674 sal_Bool SvStream::ReadLine( ByteString& rStr ) in ReadLine() argument
682 rStr.Erase(); in ReadLine()
690 if ( rStr.Len() == 0 ) in ReadLine()
721 rStr.Append( buf, n ); in ReadLine()
725 if ( !bEnd && !GetError() && rStr.Len() ) in ReadLine()
748 sal_Bool SvStream::ReadUniStringLine( String& rStr ) in ReadUniStringLine() argument
758 rStr.Erase(); in ReadUniStringLine()
767 if ( rStr.Len() == 0 ) in ReadUniStringLine()
800 rStr.Append( buf, n ); in ReadUniStringLine()
804 if ( !bEnd && !GetError() && rStr.Len() ) in ReadUniStringLine()
827 sal_Bool SvStream::ReadUniOrByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet ) in ReadUniOrByteStringLine() argument
830 return ReadUniStringLine( rStr ); in ReadUniOrByteStringLine()
832 return ReadByteStringLine( rStr, eSrcCharSet ); in ReadUniOrByteStringLine()
841 sal_Bool SvStream::ReadCString( ByteString& rStr ) in ReadCString() argument
843 if( rStr.Len() ) in ReadCString()
844 rStr.Erase(); in ReadCString()
866 rStr.Append( buf, ::sal::static_int_cast< xub_StrLen >( pPtr - buf ) ); in ReadCString()
869 nFilePos += rStr.Len(); in ReadCString()
876 sal_Bool SvStream::ReadCString( String& rStr, rtl_TextEncoding eToEncode ) in ReadCString() argument
880 rStr = String( sStr, eToEncode ); in ReadCString()
891 sal_Bool SvStream::WriteUnicodeText( const String& rStr ) in WriteUnicodeText() argument
896 xub_StrLen nLen = rStr.Len(); in WriteUnicodeText()
899 memcpy( pTmp, rStr.GetBuffer(), nLen * sizeof(sal_Unicode) ); in WriteUnicodeText()
912 Write( (char*)rStr.GetBuffer(), rStr.Len() * sizeof(sal_Unicode) ); in WriteUnicodeText()
916 sal_Bool SvStream::WriteUnicodeOrByteText( const String& rStr, rtl_TextEncoding eDestCharSet ) in WriteUnicodeOrByteText() argument
919 return WriteUnicodeText( rStr ); in WriteUnicodeOrByteText()
922 ByteString aStr( rStr, eDestCharSet ); in WriteUnicodeOrByteText()
938 sal_Bool SvStream::WriteByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet ) in WriteByteStringLine() argument
940 return WriteLine( ByteString( rStr, eDestCharSet ) ); in WriteByteStringLine()
943 sal_Bool SvStream::WriteLine( const ByteString& rStr ) in WriteLine() argument
945 Write( rStr.GetBuffer(), rStr.Len() ); in WriteLine()
950 sal_Bool SvStream::WriteUniStringLine( const String& rStr ) in WriteUniStringLine() argument
952 WriteUnicodeText( rStr ); in WriteUniStringLine()
957 sal_Bool SvStream::WriteUniOrByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet ) in WriteUniOrByteStringLine() argument
960 return WriteUniStringLine( rStr ); in WriteUniOrByteStringLine()
962 return WriteByteStringLine( rStr, eDestCharSet ); in WriteUniOrByteStringLine()
975 sal_Bool SvStream::WriteByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet ) in WriteByteStringLines() argument
977 return WriteLines( ByteString( rStr, eDestCharSet ) ); in WriteByteStringLines()
980 sal_Bool SvStream::WriteLines( const ByteString& rStr ) in WriteLines() argument
982 ByteString aStr( rStr ); in WriteLines()
989 sal_Bool SvStream::WriteUniStringLines( const String& rStr ) in WriteUniStringLines() argument
991 String aStr( rStr ); in WriteUniStringLines()
997 sal_Bool SvStream::WriteUniOrByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet ) in WriteUniOrByteStringLines() argument
1000 return WriteUniStringLines( rStr ); in WriteUniOrByteStringLines()
1002 return WriteByteStringLines( rStr, eDestCharSet ); in WriteUniOrByteStringLines()
1121 sal_Bool SvStream::ReadCsvLine( String& rStr, sal_Bool bEmbeddedLineBreak, in ReadCsvLine() argument
1125 ReadUniOrByteStringLine( rStr); in ReadCsvLine()
1132 while (!IsEof() && rStr.Len() < STRING_MAXLEN) in ReadCsvLine()
1136 p = pStart = rStr.GetBuffer(); in ReadCsvLine()
1164 nLastOffset = rStr.Len(); in ReadCsvLine()
1167 rStr += sal_Unicode(_LF); in ReadCsvLine()
1168 rStr += aNext; in ReadCsvLine()
1515 SvStream& SvStream::ReadByteString( UniString& rStr, rtl_TextEncoding eSrcCharSet ) in ReadByteString() argument
1528 sal_Unicode *pStr = rStr.AllocBuffer( in ReadByteString()
1538 rStr.Erase(); in ReadByteString()
1545 rStr = UniString( aStr, eSrcCharSet ); in ReadByteString()
1551 SvStream& SvStream::ReadByteString( ByteString& rStr ) in ReadByteString() argument
1557 char* pTmp = rStr.AllocBuffer( nLen ); in ReadByteString()
1561 rStr.Erase(); in ReadByteString()
1567 SvStream& SvStream::WriteByteString( const UniString& rStr, rtl_TextEncoding eDestCharSet ) in WriteByteString() argument
1572 sal_uInt32 nLen = rStr.Len(); in WriteByteString()
1578 const sal_Unicode *pStr = rStr.GetBuffer(); in WriteByteString()
1589 Write( rStr.GetBuffer(), nLen << 1 ); in WriteByteString()
1595 return WriteByteString(ByteString( rStr, eDestCharSet )); in WriteByteString()
1600 SvStream& SvStream::WriteByteString( const ByteString& rStr) in WriteByteString() argument
1602 sal_uInt16 nLen = rStr.Len(); in WriteByteString()
1605 Write( rStr.GetBuffer(), nLen ); in WriteByteString()
2419 SvStream& endl( SvStream& rStr ) in endl() argument
2421 LineEnd eDelim = rStr.GetLineDelimiter(); in endl()
2423 rStr << _CR; in endl()
2425 rStr << _LF; in endl()
2427 rStr << _CR << _LF; in endl()
2428 return rStr; in endl()