MCPcopy Create free account
hub / github.com/3rdparty/libprocess / CaseInsensitiveEqual

Class CaseInsensitiveEqual

include/process/http.hpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195
196
197struct CaseInsensitiveEqual
198{
199 bool operator()(const std::string& left, const std::string& right) const
200 {
201 if (left.size() != right.size()) {
202 return false;
203 }
204 for (size_t i = 0; i < left.size(); ++i) {
205 if (::tolower(left[i]) != ::tolower(right[i])) {
206 return false;
207 }
208 }
209 return true;
210 }
211};
212
213
214struct Status

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected