1#include "cpr/cprtypes.h"
2
3#include <algorithm>
4#include <cctype>
5
6namespace cpr {
7bool CaseInsensitiveCompare::operator()(const std::string& a, const std::string& b) const noexcept {
8 return std::lexicographical_compare(a.begin(), a.end(), b.begin(), b.end(), [](unsigned char ac, unsigned char bc) { return std::tolower(c: ac) < std::tolower(c: bc); });
9}
10} // namespace cpr
11