MCPcopy Create free account
hub / github.com/cxasm/notepad-- / getBigFileBlockId

Method getBigFileBlockId

src/cceditor/filemanager.cpp:1373–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373int FileManager::getBigFileBlockId(QString filepath, quint32 lineNum)
1374{
1375 BigTextEditFileMgr* v = m_bigTxtEditFileMgr.value(filepath);
1376
1377 for (int i = 0, s = v->blocks.size(); i < s; ++i)
1378 {
1379 const BlockIndex& k = v->blocks.at(i);
1380 if (lineNum >= k.lineNumStart && lineNum < (k.lineNumStart + k.lineNum))
1381 {
1382 return i;
1383 }
1384 }
1385 return -1;
1386}
1387
1388HexFileMgr * FileManager::getHexFileHand(QString filepath)
1389{

Callers 1

slot_gotolineMethod · 0.80

Calls 2

valueMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected