LibreOffice Module svl (master) 1
Functions
stringio.hxx File Reference
#include <rtl/ustring.hxx>
Include dependency graph for stringio.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

OUString readByteString (SvStream &rStream)
 Read in a Unicode string from a streamed byte string representation. More...
 
void writeByteString (SvStream &rStream, std::u16string_view rString)
 Write a byte string representation of a Unicode string into a stream. More...
 

Function Documentation

◆ readByteString()

OUString readByteString ( SvStream rStream)

Read in a Unicode string from a streamed byte string representation.

Parameters
rStreamSome (input) stream. Its Stream/TargetCharSets must be set to correct values!
Returns
On success, returns the reconstructed Unicode string.

Definition at line 24 of file stringio.cxx.

References SvStream::GetStreamCharSet(), and SvStream::ReadUniOrByteString().

Referenced by SvxMacroTableDtor::Read().

◆ writeByteString()

void writeByteString ( SvStream rStream,
std::u16string_view  rString 
)

Write a byte string representation of a Unicode string into a stream.

Parameters
rStreamSome (output) stream. Its Stream/TargetCharSets must be set to correct values!
rStringSome Unicode string.

Definition at line 29 of file stringio.cxx.

References SvStream::GetStreamCharSet(), and SvStream::WriteUniOrByteString().

Referenced by SvxMacroTableDtor::Write().