don't use boost string algorithm

This commit is contained in:
Chunting Gu
2020-02-18 09:49:45 +08:00
parent 7e7ab1c1e8
commit 1e3c2b2604
25 changed files with 336 additions and 308 deletions
+3 -2
View File
@@ -2,9 +2,10 @@
#include <iostream>
#include "boost/algorithm/string/predicate.hpp"
#include "json/json.h"
#include "webcc/string.h"
#include "book_json.h"
BookClient::BookClient(const std::string& url, int timeout)
@@ -179,7 +180,7 @@ bool BookClient::CheckPhoto(const std::filesystem::path& photo) {
}
auto ext = photo.extension().string();
if (!boost::iequals(ext, ".jpg") && !boost::iequals(ext, ".jpeg")) {
if (!webcc::iequals(ext, ".jpg") && !webcc::iequals(ext, ".jpeg")) {
return false;
}
-1
View File
@@ -5,7 +5,6 @@
#include <list>
#include <string>
#include "boost/filesystem/path.hpp"
#include "json/json-forwards.h"
#include "webcc/client_session.h"