MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator==

Method operator==

src/fl/stl/string.cpp.hpp:236–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool string::operator==(const string& other) const FL_NOEXCEPT {
237 if (size() != other.size()) {
238 return false;
239 }
240 return fl::memcmp(c_str(), other.c_str(), size()) == 0;
241}
242
243bool string::operator!=(const string& other) const FL_NOEXCEPT {
244 return !(*this == other);

Callers

nothing calls this directly

Calls 4

memcmpFunction · 0.85
sizeFunction · 0.70
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected