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

Method compare

source/core/StarString.cpp:724–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722 return full ? RE2::FullMatch(utf8(), re) : RE2::PartialMatch(utf8(), re);
723}
724int String::compare(String const& s, CaseSensitivity cs) const {
725 if (cs == CaseSensitive)
726 return m_string.compare(s.m_string);
727 else
728 return compare(0, NPos, s, 0, NPos, cs);
729}
730
731bool String::equals(String const& s, CaseSensitivity cs) const {
732 return compare(s, cs) == 0;

Callers 9

sortBagMethod · 0.45
updateItemStateMethod · 0.45
refreshMethod · 0.45
setMethod · 0.45
imageOperationFromStringFunction · 0.45
containsMethod · 0.45
TESTFunction · 0.45
processPacketMethod · 0.45

Calls 5

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

Tested by 2

TESTFunction · 0.36