MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / CaseInsensitiveCompare

Function CaseInsensitiveCompare

Tests/PresentMon.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool CaseInsensitiveCompare(const std::string& str1, const std::string& str2) {
67 if (str1.size() != str2.size()) {
68 return false;
69 }
70 return std::equal(str1.begin(), str1.end(), str2.begin(),
71 [](unsigned char c1, unsigned char c2) {
72 return std::tolower(c1) == std::tolower(c2);
73 });
74}
75
76PresentMonCsv::Header FindHeader(char const* header)
77{

Callers 1

FindHeaderFunction · 0.70

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected