SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Handle class for Unicode character output streams that support an extended interface. More...
#include <rw/stream/RWUCharArrayOutputStream.h>
Public Member Functions | |
RWUCharArrayOutputStream (RWUCharArrayOutputStreamImp *body) | |
RWUCharArrayOutputStream (const RWUCharArrayOutputStream &handle) | |
RWUCharArrayOutputStream & | operator= (const RWUCharArrayOutputStream &handle) |
RWUChar * | getUCharacterArray () |
RWSize | getUCharacterArraySize () const |
void | clear () |
Handle class for Unicode character output streams that support an extended interface. This interface allows retrieval of the output stream's inserted data as a UTF-16 character array. Implements the handle idiom from the handle-body pattern.
UChar
or unicodeArray
refer to the Unicode form UTF-16. RWUCharArrayOutputStream::RWUCharArrayOutputStream | ( | RWUCharArrayOutputStreamImp * | body | ) | [inline, explicit] |
Constructor.
body | A pointer to an implementation class supporting the abstract interface RWUCharArrayOutputStreamImp. |
RWUCharArrayOutputStream::RWUCharArrayOutputStream | ( | const RWUCharArrayOutputStream & | handle | ) | [inline] |
Copy constructor.
handle | A UTF-16 character array stream handle used to initialize the newly created handle. |
void RWUCharArrayOutputStream::clear | ( | void | ) | [inline] |
Resets the underlying buffer.
RWUChar* RWUCharArrayOutputStream::getUCharacterArray | ( | ) | [inline] |
Returns a pointer to the array of UTF-16 characters inserted into the stream since its creation. Users are responsible for freeing the memory associated with the array returned by this function using operator delete[]
.
RWSize RWUCharArrayOutputStream::getUCharacterArraySize | ( | ) | const [inline] |
Returns the size of the UTF-16 character array that would be returned by a call to function getUCharacterArray().
RWUCharArrayOutputStream& RWUCharArrayOutputStream::operator= | ( | const RWUCharArrayOutputStream & | handle | ) | [inline] |
Assignment operator. Throws no exceptions.
handle | A UTF-16 character array stream handle used to initialize this handle. |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.