MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / stringEquals

Function stringEquals

src/ArduinoJson/Strings/Adapters/FlashString.hpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 friend bool stringEquals(FlashString a, RamString b) {
38 ARDUINOJSON_ASSERT(a.typeSortKey < b.typeSortKey);
39 ARDUINOJSON_ASSERT(!a.isNull());
40 ARDUINOJSON_ASSERT(!b.isNull());
41 if (a.size() != b.size())
42 return false;
43 return ::memcmp_P(b.data(), a.str_, a.size_) == 0;
44 }
45
46 friend int stringCompare(FlashString a, RamString b) {
47 ARDUINOJSON_ASSERT(a.typeSortKey < b.typeSortKey);

Callers

nothing calls this directly

Calls 4

memcmp_PFunction · 0.85
isNullMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected