diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2018-07-02 00:17:22 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2018-07-02 00:17:22 -0700 |
commit | ddc380dc076d5335a34c837f41c8e5163aef3c44 (patch) | |
tree | 5f28169bd76092fb52a3937924425fc312209162 /src/PercentEncodedCharacterDecoder.hpp | |
parent | 4f143b56b5ec2bc686a999571c825a7e9fa0d139 (diff) |
Refactoring
* Replaced the more formal "state machine" used in URI
elements that may have percent-encoded characters, with
a simpler loop with a flag and a few conditional logic
paths.
* Extracted the parsing of the above types of elements into
a common method, DecodeElement.
* Kept DecodeQueryOrFragment around, in order to prevent
having to repeat the name of the allowed character set which
is common between query and fragment; however the function
is now just a very thin wrapper.
Diffstat (limited to 'src/PercentEncodedCharacterDecoder.hpp')
0 files changed, 0 insertions, 0 deletions