A helper stream for decoding a percent-encoded sequence into code unit. More...
Public Types | |
| typedef ValueType::Ch | Ch |
Public Member Functions | |
| bool | IsValid () const |
| PercentDecodeStream (const Ch *source, const Ch *end) | |
| Constructor. More... | |
| Ch | Take () |
| size_t | Tell () const |
Private Attributes | |
| const Ch * | end_ |
| Past-the-end position. More... | |
| const Ch * | head_ |
| Original head of the string. More... | |
| const Ch * | src_ |
| Current read 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 |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |