A helper stream for decoding a percent-encoded sequence into code unit. More...
Public Types | |
typedef ValueType::Ch | Ch |
Public Member Functions | |
PercentDecodeStream (const Ch *source, const Ch *end) | |
Constructor. More... | |
Ch | Take () |
size_t | Tell () const |
bool | IsValid () const |
Private Attributes | |
const Ch * | src_ |
Current read position. More... | |
const Ch * | head_ |
Original head of the string. More... | |
const Ch * | end_ |
Past-the-end position. More... | |
bool | valid_ |
Whether the parsing is valid. More... | |
A helper stream for decoding a percent-encoded sequence into code unit.
This stream decodes XY triplet into code unit (0-255). If it encounters invalid characters, it sets output code unit as 0 and mark invalid, and to be checked by IsValid().
typedef ValueType::Ch GenericPointer< ValueType, Allocator >::PercentDecodeStream::Ch |
|
inline |
Constructor.
source | Start of the stream |
end | Past-the-end of the stream. |
Definition at line 992 of file pointer.h.
|
inline |
Definition at line 1017 of file pointer.h.
|
inline |
Definition at line 994 of file pointer.h.
|
inline |
Definition at line 1016 of file pointer.h.
|
private |
|
private |
|
private |
|
private |