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

Function operator==

source/core/StarStringView.cpp:422–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422bool operator==(StringView s1, const char* s2) {
423 return s1.m_view.compare(s2) == 0;
424}
425
426bool operator==(StringView s1, std::string const& s2) {
427 return s1.m_view.compare(s2) == 0;

Callers

nothing calls this directly

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected