mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
clangformat
This commit is contained in:
parent
e0ebc431dc
commit
d79633ff52
1 changed files with 6 additions and 7 deletions
|
@ -369,8 +369,9 @@ inline unsigned char to_lower(int c) {
|
|||
|
||||
inline bool equal(const std::string &a, const std::string &b) {
|
||||
return a.size() == b.size() &&
|
||||
std::equal(a.begin(), a.end(), b.begin(),
|
||||
[](char ca, char cb) { return to_lower(ca) == to_lower(cb); });
|
||||
std::equal(a.begin(), a.end(), b.begin(), [](char ca, char cb) {
|
||||
return to_lower(ca) == to_lower(cb);
|
||||
});
|
||||
}
|
||||
|
||||
struct equal_to {
|
||||
|
@ -2900,9 +2901,7 @@ inline void stream_line_reader::append(char c) {
|
|||
}
|
||||
}
|
||||
|
||||
inline mmap::mmap(const char *path) {
|
||||
open(path);
|
||||
}
|
||||
inline mmap::mmap(const char *path) { open(path); }
|
||||
|
||||
inline mmap::~mmap() { close(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue