aboutsummaryrefslogtreecommitdiff
path: root/src/PercentEncodedCharacterDecoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PercentEncodedCharacterDecoder.cpp')
-rw-r--r--src/PercentEncodedCharacterDecoder.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/PercentEncodedCharacterDecoder.cpp b/src/PercentEncodedCharacterDecoder.cpp
index 1720ee9..3dd302f 100644
--- a/src/PercentEncodedCharacterDecoder.cpp
+++ b/src/PercentEncodedCharacterDecoder.cpp
@@ -62,11 +62,11 @@ namespace Uri {
case 0: { // % ...
impl_->decoderState = 1;
impl_->decodedCharacter <<= 4;
- if (IsCharacterInSet(c, DIGIT)) {
+ if (DIGIT.Contains(c)) {
impl_->decodedCharacter += (int)(c - '0');
- } else if (IsCharacterInSet(c, HEX_UPPER)) {
+ } else if (HEX_UPPER.Contains(c)) {
impl_->decodedCharacter += (int)(c - 'A') + 10;
- } else if (IsCharacterInSet(c, HEX_LOWER)) {
+ } else if (HEX_LOWER.Contains(c)) {
impl_->decodedCharacter += (int)(c - 'a') + 10;
} else {
return false;
@@ -76,11 +76,11 @@ namespace Uri {
case 1: { // %[0-9A-F] ...
impl_->decoderState = 2;
impl_->decodedCharacter <<= 4;
- if (IsCharacterInSet(c, DIGIT)) {
+ if (DIGIT.Contains(c)) {
impl_->decodedCharacter += (int)(c - '0');
- } else if (IsCharacterInSet(c, HEX_UPPER)) {
+ } else if (HEX_UPPER.Contains(c)) {
impl_->decodedCharacter += (int)(c - 'A') + 10;
- } else if (IsCharacterInSet(c, HEX_LOWER)) {
+ } else if (HEX_LOWER.Contains(c)) {
impl_->decodedCharacter += (int)(c - 'a') + 10;
} else {
return false;