This class inherits from bsl::streambuf, and holds and wraps another streambuf. It forwards input through the held streambuf, and checks for invalid UTF‐8. The wrapping object does not support ouput, only input. If the held streambuf supports seeking, seeks are supported, though not forward seeks, and pubseekoff(0, bsl::ios_base::cur) is supported whether the wrapped streambuf supports seeking or not.
Synopsis
Declared in <bdlde_utf8checkinginstreambufwrapper.h>
class Utf8CheckingInStreamBufWrapper
: public std::streambuf
Base Classes
Name |
Description |
|
Enums
Name |
Description |
Error status values for seek failures. |
Member Functions
Name |
Description |
|
Create a |
|
Create an empty UTF‐8 checking streambuf wrapper using the specified |
|
Create a |
|
Destroy this object. |
Return the current error mode of this object. This will be either 0 (no errors or end of data), |
|
Return |
|
Associate this object with the specified |
|
|
Static Member Functions
Name |
Description |
Return a description of the specified |
Protected Member Functions
Name |
Description |
|
If |
|
Unconditionally return |
|
Back up input one byte. Return the byte at the new position, or |
|
Move the position associated with this object according to the specified |
|
Set the position of this object to the specified absolute |
|
Return the number of bytes that are guaranteed that can be read before |
|
Replenish the input buffer with data obtained from the held |
|
Read up to the specified |
|
Output function, not supported in this input‐only implementation; stubbed out, arguments ignored, returns 0. Note that this function is forwarded to by |
Created with MrDocs