Public Types | Public Member Functions | Private Attributes | List of all members
GenericPointer< ValueType, Allocator >::PercentDecodeStream Class Reference

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 Chend_
 Past-the-end position. More...
 
const Chhead_
 Original head of the string. More...
 
const Chsrc_
 Current read position. More...
 
bool valid_
 Whether the parsing is valid. More...
 

Detailed Description

template<typename ValueType, typename Allocator = CrtAllocator>
class GenericPointer< ValueType, Allocator >::PercentDecodeStream

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().

Definition at line 980 of file pointer.h.

Member Typedef Documentation

template<typename ValueType, typename Allocator = CrtAllocator>
typedef ValueType::Ch GenericPointer< ValueType, Allocator >::PercentDecodeStream::Ch

Definition at line 982 of file pointer.h.

Constructor & Destructor Documentation

template<typename ValueType, typename Allocator = CrtAllocator>
GenericPointer< ValueType, Allocator >::PercentDecodeStream::PercentDecodeStream ( const Ch source,
const Ch end 
)
inline

Constructor.

Parameters
sourceStart of the stream
endPast-the-end of the stream.

Definition at line 989 of file pointer.h.

Member Function Documentation

template<typename ValueType, typename Allocator = CrtAllocator>
bool GenericPointer< ValueType, Allocator >::PercentDecodeStream::IsValid ( ) const
inline

Definition at line 1014 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
Ch GenericPointer< ValueType, Allocator >::PercentDecodeStream::Take ( )
inline

Definition at line 991 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
size_t GenericPointer< ValueType, Allocator >::PercentDecodeStream::Tell ( ) const
inline

Definition at line 1013 of file pointer.h.

Member Data Documentation

template<typename ValueType, typename Allocator = CrtAllocator>
const Ch* GenericPointer< ValueType, Allocator >::PercentDecodeStream::end_
private

Past-the-end position.

Definition at line 1019 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
const Ch* GenericPointer< ValueType, Allocator >::PercentDecodeStream::head_
private

Original head of the string.

Definition at line 1018 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
const Ch* GenericPointer< ValueType, Allocator >::PercentDecodeStream::src_
private

Current read position.

Definition at line 1017 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
bool GenericPointer< ValueType, Allocator >::PercentDecodeStream::valid_
private

Whether the parsing is valid.

Definition at line 1020 of file pointer.h.


The documentation for this class was generated from the following file:


choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:10