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

Method mid

kdevplatform/language/duchain/identifier.cpp:1093–1111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093QualifiedIdentifier QualifiedIdentifier::mid(int pos, int len) const
1094{
1095 QualifiedIdentifier ret;
1096 if (pos == 0)
1097 ret.setExplicitlyGlobal(explicitlyGlobal());
1098
1099 int cnt = ( int )count();
1100
1101 if (len == -1)
1102 len = cnt - pos;
1103
1104 if (pos + len > cnt)
1105 len -= cnt - (pos + len);
1106
1107 for (int a = pos; a < pos + len; a++)
1108 ret.push(at(a));
1109
1110 return ret;
1111}
1112
1113Identifier QualifiedIdentifier::at(int i) const
1114{

Callers 15

BreakpointLocationMethod · 0.80
rebaseMatchingUrlFunction · 0.80
addGlobPatternMethod · 0.80
displayUrlFunction · 0.80
DependencyMethod · 0.80
textWordMethod · 0.80
documentDirAndFilenameFunction · 0.80
moveRowsDownMethod · 0.80
moveRowsToBottomMethod · 0.80
moveRowsUpMethod · 0.80

Calls 4

atFunction · 0.85
setExplicitlyGlobalMethod · 0.80
countFunction · 0.50
pushMethod · 0.45

Tested by 11

BreakpointLocationMethod · 0.64
TestFileMethod · 0.64
testExtractCursorMethod · 0.64
documentTextMethod · 0.64
prepareCompletionFunction · 0.64