aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/Uri.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d764ffe..0602120 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(${This} PROPERTIES
target_include_directories(${This} PUBLIC include)
target_link_libraries(${This} PUBLIC
- SystemAbstractions
+ StringExtensions
)
add_subdirectory(test)
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);
}