MCPcopy Create free account
hub / github.com/KDE/kdiff3 / recalcWordWrap

Method recalcWordWrap

src/diff.h:420–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 void calcDiff3LineListTrim(const std::shared_ptr<LineDataVector> &pldA, const std::shared_ptr<LineDataVector> &pldB, const std::shared_ptr<LineDataVector> &pldC, ManualDiffHelpList* pManualDiffHelpList);
419
420 LineType recalcWordWrap(bool resetDisplayCount)
421 {
422 LineType sumOfLines = 0;
423
424 for(Diff3Line& d3l: *this)
425 {
426 if(resetDisplayCount)
427 d3l.mLinesNeededForDisplay = 1;
428
429 d3l.mSumLinesNeededForDisplay = sumOfLines;
430 sumOfLines += d3l.linesNeededForDisplay();
431 }
432
433 return sumOfLines;
434 }
435
436 void debugLineCheck(const LineType size, const e_SrcSelector srcSelector) const;
437

Callers

nothing calls this directly

Calls 1

linesNeededForDisplayMethod · 0.80

Tested by

no test coverage detected