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
+2 -3
View File
@@ -2,12 +2,11 @@
#include <iostream>
#include "boost/algorithm/string.hpp"
#include "boost/filesystem/operations.hpp"
#include "json/json.h"
#include "webcc/string.h"
#include "book_json.h"
namespace bfs = boost::filesystem;
@@ -180,7 +179,7 @@ bool BookClient::CheckPhoto(const bfs::path& photo) {
}
auto ext = photo.extension().string();
if (!webcc::iequals(ext, ".jpg") && !webcc::iequals(ext, ".jpeg")) {
if (!boost::iequals(ext, ".jpg") && !boost::iequals(ext, ".jpeg")) {
return false;
}