MCPcopy Create free account
hub / github.com/KDE/kdevelop / beginsWith

Method beginsWith

kdevplatform/language/duchain/identifier.cpp:948–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948bool QualifiedIdentifier::beginsWith(const QualifiedIdentifier& other) const
949{
950 uint c = count();
951 uint oc = other.count();
952
953 for (uint i = 0; i < c && i < oc; ++i)
954 if (at(i) == other.at(i)) {
955 continue;
956 } else {
957 return false;
958 }
959
960 return true;
961}
962
963uint QualifiedIdentifier::hash() const
964{

Callers 1

enumContainsEnumeratorFunction · 0.80

Calls 4

atFunction · 0.85
countFunction · 0.50
countMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected