MCPcopy Create free account
hub / github.com/FastLED/FastLED / iequals

Function iequals

src/fl/stl/asio/http/server.cpp.hpp:79–85  ·  view source on GitHub ↗

Helper: Case-insensitive string comparison

Source from the content-addressed store, hash-verified

77
78// Helper: Case-insensitive string comparison
79bool iequals(const string& a, const string& b) {
80 if (a.size() != b.size()) return false;
81 for (size_t i = 0; i < a.size(); ++i) {
82 if (fl::tolower(a[i]) != fl::tolower(b[i])) return false;
83 }
84 return true;
85}
86
87// Helper: Trim whitespace from string
88string trim(const string& s) {

Callers 1

headerMethod · 0.85

Calls 2

tolowerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected