diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2019-11-09 15:19:38 -0800 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2019-11-09 15:19:38 -0800 |
commit | 605f42feb57f5ef1f988a62730f65afd9923c417 (patch) | |
tree | 56c13df5ca7774e7bb6813ce7e5a8afea3370758 /src/Uri.cpp | |
parent | 47a974e0dd06a9a78ceb5aeb1fe3249845baab0b (diff) |
StringExtensions moved from SystemAbstractions to its own library
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp index e2448bb..9bd8c4a 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -16,7 +16,7 @@ #include <memory> #include <sstream> #include <string> -#include <SystemAbstractions/StringExtensions.hpp> +#include <StringExtensions/StringExtensions.hpp> #include <Uri/Uri.hpp> #include <vector> @@ -844,17 +844,17 @@ namespace Uri { return false; } if (hostIsRegName) { - host = SystemAbstractions::ToLower(host); + host = StringExtensions::ToLower(host); } if (portString.empty()) { hasPort = false; } else { intmax_t portAsInt; if ( - SystemAbstractions::ToInteger( + StringExtensions::ToInteger( portString, portAsInt - ) != SystemAbstractions::ToIntegerResult::Success + ) != StringExtensions::ToIntegerResult::Success ) { return false; } @@ -913,7 +913,7 @@ namespace Uri { ) { return false; } - scheme = SystemAbstractions::ToLower(scheme); + scheme = StringExtensions::ToLower(scheme); rest = uriString.substr(schemeEnd + 1); } return true; @@ -1440,7 +1440,7 @@ namespace Uri { } if (!impl_->host.empty()) { if (ValidateIpv6Address(impl_->host)) { - buffer << '[' << SystemAbstractions::ToLower(impl_->host) << ']'; + buffer << '[' << StringExtensions::ToLower(impl_->host) << ']'; } else { buffer << EncodeElement(impl_->host, REG_NAME_NOT_PCT_ENCODED); } |