MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / compare

Method compare

source/core/StarStringView.cpp:337–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337int StringView::compare(StringView s, CaseSensitivity cs) const {
338 if (cs == CaseSensitivity::CaseSensitive)
339 return m_view.compare(s.m_view);
340 else
341 return compare(0, NPos, s, 0, NPos, cs);
342}
343
344bool StringView::equals(StringView s, CaseSensitivity cs) const {
345 return compare(s, cs) == 0;

Callers 1

operator==Function · 0.45

Calls 5

compareFunction · 0.85
beginFunction · 0.85
endFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected