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

Method str

kdevplatform/serialization/indexedstring.cpp:332–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332QString IndexedString::str() const
333{
334 if (!m_index) {
335 return QString();
336 } else if (isSingleCharIndex(m_index)) {
337 return QString(QLatin1Char(indexToChar(m_index)));
338 } else {
339 const uint index = m_index;
340 return LockedItemRepository::read<IndexedString>([index](const IndexedStringRepository& repo) {
341 return stringFromItem(repo.itemFromIndex(index));
342 });
343 }
344}
345
346int IndexedString::length() const
347{

Callers 15

operator<<Function · 0.80
testUrlMethod · 0.80
testMethod · 0.80
testMoveAssignmentMethod · 0.80
OptionallyRcStringMethod · 0.80
testSwapMethod · 0.80
testStringSharingMethod · 0.80
bench_qstringMethod · 0.80
testUrlMethod · 0.80
testMethod · 0.80
includeMethod · 0.80

Calls 5

isSingleCharIndexFunction · 0.85
indexToCharFunction · 0.85
QStringClass · 0.70
stringFromItemFunction · 0.70
itemFromIndexMethod · 0.45

Tested by 15

testUrlMethod · 0.64
testMethod · 0.64
testMoveAssignmentMethod · 0.64
OptionallyRcStringMethod · 0.64
testSwapMethod · 0.64
testStringSharingMethod · 0.64
bench_qstringMethod · 0.64
testUrlMethod · 0.64
testMethod · 0.64
testPathGroupingMethod · 0.64
checkDisplayMethod · 0.64
checkPathGroupMethod · 0.64