simplify string utilities

This commit is contained in:
Chunting Gu
2021-04-19 14:01:18 +08:00
parent f5f72d7897
commit 01210e8a42
16 changed files with 150 additions and 191 deletions
+4 -3
View File
@@ -2,8 +2,9 @@
#include <algorithm>
#include "boost/algorithm/string.hpp"
#include "webcc/logger.h"
#include "webcc/string.h"
namespace webcc {
@@ -59,7 +60,7 @@ ViewPtr Router::FindView(const std::string& method, const std::string& url,
return route.view;
}
} else {
if (iequals(route.url, url)) {
if (boost::iequals(route.url, url)) {
return route.view;
}
}
@@ -87,7 +88,7 @@ bool Router::MatchView(const std::string& method, const std::string& url,
return true;
}
} else {
if (iequals(route.url, url)) {
if (boost::iequals(route.url, url)) {
*stream = route.view->Stream(method);
return true;
}