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

Method getLineIndex

src/diff.h:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 [[nodiscard]] inline bool hasFineDiffCA() const { return pFineCA != nullptr; }
282
283 [[nodiscard]] inline LineType getLineIndex(e_SrcSelector src) const
284 {
285 switch(src)
286 {
287 case e_SrcSelector::A:
288 return getLineA();
289 case e_SrcSelector::B:
290 return getLineB();
291 case e_SrcSelector::C:
292 return getLineC();
293 default:
294 assert(false);
295 return LineRef::invalid;
296 }
297 }
298
299 [[nodiscard]] LineRef getLineA() const { return lineA; }
300 [[nodiscard]] LineRef getLineB() const { return lineB; }

Callers 1

getStringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected