RWUCharInputStream Class Reference
[Streams]
Handle class for all the UTF-16 character input stream implementation classes.
More...
#include <rw/stream/RWUCharInputStream.h>
List of all members.
Detailed Description
Handle class for all the UTF-16 character input stream implementation classes. Implements the handle idiom from the handle-body pattern.
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
| handle | A UTF-16 character stream handle used to initialize the newly created handle. |
Member Function Documentation
RWSize RWUCharInputStream::available |
( |
|
) |
const [inline] |
Returns the number of UTF-16 characters that can be read from the stream without blocking. Throws no exceptions.
void RWUCharInputStream::close |
( |
void |
|
) |
[inline] |
bool RWUCharInputStream::isBad |
( |
|
) |
const [inline] |
Returns true
to indicate a loss of integrity resulting from an input operation, such as an irrecoverable read error from a file. Throws no exceptions.
bool RWUCharInputStream::isEof |
( |
|
) |
const [inline] |
Returns true
to indicate that an input operation reached the end of an input sequence. Throws no exceptions.
bool RWUCharInputStream::isFail |
( |
|
) |
const [inline] |
Returns true
to indicate that an input operation failed to read the expected data. Throws no exceptions.
bool RWUCharInputStream::isGood |
( |
|
) |
const [inline] |
Returns true
to indicate a stream in a valid state. Throws no exceptions.
Assignment operator. Throws no exceptions.
- Parameters:
-
| handle | A UTF-16 character stream handle used to initialize this handle. |
Reads a single UTF-16 character from the stream.
- Parameters:
-
| unicodeValue | The UTF-16 character to be read from the stream. |
Extractor executing a manipulator function.
- Parameters:
-
| pf | The manipulator's function pointer. |
Extractor executing a manipulator function.
- Parameters:
-
| pf | The manipulator's function pointer. |
Reads an array of UTF-16 characters from the stream. The array must be pre-allocated to contain at least numUChars elements. The function returns the actual number of UTF-16 characters extracted from the stream.
- Parameters:
-
| unicodeArray | A pointer to the first element of the array. |
| numUChars | The number of UTF-16 characters to be read from the stream. |
RWUChar RWUCharInputStream::read |
( |
void |
|
) |
[inline] |
Reads a single UTF-16 character from the stream.
Reads UTF-16 characters from the stream until the last UTF-16 character read is equal to delim, or maxSize UTF-16 characters have been read, or the end of the input sequence is reached. The UTF-16 characters read are stored in unicodeArray. The function returns the actual number of UTF-16 characters read from the stream.
- Parameters:
-
| unicodeArray | A pointer to the array receiving the UTF-16 characters extracted from the stream. |
| maxSize | The maximum number of UTF-16 characters to be read. |
| delim | The UTF-16 character used as a delimiter. |
RWSize RWUCharInputStream::skip |
( |
RWSize |
numUnits |
) |
[inline] |
Skips numUnits UTF-16 characters from the input sequence if possible. The function returns the actual number of UTF-16 characters skipped, which can be any value between 0 and numUnits.
- Parameters:
-
| numUnits | The number of UTF-16 characters to be skipped. |
Friends And Related Function Documentation
Manipulator that discards a UTF-16 character from a stream input sequence.
- Parameters:
-
| stream | The UTF-16 character stream. |