aboutsummaryrefslogtreecommitdiff
path: root/src/PercentEncodedCharacterDecoder.cpp
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-02 00:17:22 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-02 00:17:22 -0700
commitddc380dc076d5335a34c837f41c8e5163aef3c44 (patch)
tree5f28169bd76092fb52a3937924425fc312209162 /src/PercentEncodedCharacterDecoder.cpp
parent4f143b56b5ec2bc686a999571c825a7e9fa0d139 (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.cpp')
0 files changed, 0 insertions, 0 deletions