Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
opt
cpr
cpr
cprtypes.cpp
Go to the documentation of this file.
1
#include "
cpr/cprtypes.h
"
2
3
#include <algorithm>
4
#include <cctype>
5
6
namespace
cpr
{
7
8
bool
CaseInsensitiveCompare::operator()
(
const
std::string
&
a
,
const
std::string
& b)
const
noexcept {
9
return
std::lexicographical_compare(
10
a
.begin(),
a
.end(), b.begin(), b.end(),
11
[](
unsigned
char
ac,
unsigned
char
bc) {
return
std::tolower(ac) < std::tolower(bc); });
12
}
13
14
}
// namespace cpr
cpr::CaseInsensitiveCompare::operator()
bool operator()(const std::string &a, const std::string &b) const noexcept
Definition:
cprtypes.cpp:8
testing::internal::string
::std::string string
Definition:
gtest-port.h:1129
cprtypes.h
a
Definition:
unit1323.c:36
cpr
Definition:
auth.cpp:3
rc_tagdetect_client
Author(s): Monika Florek-Jasinska
, Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:08