MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / operator==

Method operator==

src/String.cpp:396–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 const char *ptr;
395 Finder(int len, const char *inPtr) : len(len), ptr(inPtr) { }
396 bool operator==(const String &inStr) const
397 {
398 return len == inStr.length && !memcmp(ptr, inStr.__s, len*sizeof(char));
399 }
400 };
401 String found;
402 if (ctx->stringSet->findEquivalentKey(found, hash, Finder(len, inStr)))

Callers

nothing calls this directly

Calls 1

memcmpFunction · 0.50

Tested by

no test coverage detected