diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2018-08-05 15:23:56 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2018-08-05 15:23:56 -0700 |
commit | 54881d9f90acfb1676b3eebb0feb17811d1cc4bf (patch) | |
tree | 4bbadb21100a85dc7d95e4fd844e3e3839645860 /src/Uri.cpp | |
parent | a09abace8d4ec0d2fc9bb65493dfae7b7ce8e0fe (diff) |
Use SystemAbstractions::ToLower instead of doing it ourselves
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp index cb44c1e..4d08e38 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -7,7 +7,6 @@ */ #include "CharacterSet.hpp" -#include "NormalizeCaseInsensitiveString.hpp" #include "PercentEncodedCharacterDecoder.hpp" #include <algorithm> @@ -16,6 +15,7 @@ #include <memory> #include <sstream> #include <string> +#include <SystemAbstractions/StringExtensions.hpp> #include <Uri/Uri.hpp> #include <vector> @@ -869,7 +869,7 @@ namespace Uri { return false; } if (hostIsRegName) { - host = NormalizeCaseInsensitiveString(host); + host = SystemAbstractions::ToLower(host); } if (portString.empty()) { hasPort = false; @@ -926,7 +926,7 @@ namespace Uri { ) { return false; } - scheme = NormalizeCaseInsensitiveString(scheme); + scheme = SystemAbstractions::ToLower(scheme); rest = uriString.substr(schemeEnd + 1); } return true; @@ -1439,7 +1439,7 @@ namespace Uri { } if (!impl_->host.empty()) { if (ValidateIpv6Address(impl_->host)) { - buffer << '[' << NormalizeCaseInsensitiveString(impl_->host) << ']'; + buffer << '[' << SystemAbstractions::ToLower(impl_->host) << ']'; } else { buffer << EncodeElement(impl_->host, REG_NAME_NOT_PCT_ENCODED); } |