Streambuf wrapper that forwards input and validates UTF‐8.
Synopsis
Declared in <bdlde_utf8checkinginstreambufwrapper.h>
class Utf8CheckingInStreamBufWrapper
: public std::streambuf
Description
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.
Base Classes
Name |
Description |
|
Enums
Name |
Description |
Error status values for seek failures. |
Member Functions
Name |
Description |
|
Create a UTF‐8 checking streambuf wrapper with no associated streambuf. |
|
Create an empty UTF‐8 checking streambuf wrapper using the specified |
|
Create a UTF‐8 checking streambuf wrapper associated with |
|
Destroy this object. |
Return the current error status of this object. |
|
Return |
|
Associate this object with the specified |
|
|
Static Member Functions
Name |
Description |
Return a human‐readable description of the specified error status. |
Protected Member Functions
Name |
Description |
|
Propagate the specified locale to the held streambuf, if any. |
|
Unconditionally return |
|
Put back one byte of input, optionally substituting a character. |
|
Move the position associated with this object according to the specified |
|
Set the position of this object to the specified absolute offset. |
|
Return how many bytes can be read before underflow may return eof. |
|
Replenish the input buffer and return the next input byte. |
|
Read up to the specified number of characters into the buffer. |
|
Attempt to write characters; always fails in this input‐only wrapper. |
Created with MrDocs