mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
clangformat
This commit is contained in:
parent
e0ebc431dc
commit
d79633ff52
@ -369,8 +369,9 @@ inline unsigned char to_lower(int c) {
|
|||||||
|
|
||||||
inline bool equal(const std::string &a, const std::string &b) {
|
inline bool equal(const std::string &a, const std::string &b) {
|
||||||
return a.size() == b.size() &&
|
return a.size() == b.size() &&
|
||||||
std::equal(a.begin(), a.end(), b.begin(),
|
std::equal(a.begin(), a.end(), b.begin(), [](char ca, char cb) {
|
||||||
[](char ca, char cb) { return to_lower(ca) == to_lower(cb); });
|
return to_lower(ca) == to_lower(cb);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
struct equal_to {
|
struct equal_to {
|
||||||
@ -2900,9 +2901,7 @@ inline void stream_line_reader::append(char c) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline mmap::mmap(const char *path) {
|
inline mmap::mmap(const char *path) { open(path); }
|
||||||
open(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline mmap::~mmap() { close(); }
|
inline mmap::~mmap() { close(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user