* @brief Get the file names on both sides for specified item. * @note Return empty strings if item is special item. */
| 1062 | * @note Return empty strings if item is special item. |
| 1063 | */ |
| 1064 | void GetItemFileNames(const CDiffContext& ctxt, const DIFFITEM &di, String& strLeft, String& strRight) |
| 1065 | { |
| 1066 | const String leftrelpath = paths::ConcatPath(di.diffFileInfo[0].path, di.diffFileInfo[0].filename); |
| 1067 | const String rightrelpath = paths::ConcatPath(di.diffFileInfo[1].path, di.diffFileInfo[1].filename); |
| 1068 | const String & leftpath = ctxt.GetPath(0); |
| 1069 | const String & rightpath = ctxt.GetPath(1); |
| 1070 | strLeft = paths::ConcatPath(leftpath, leftrelpath); |
| 1071 | strRight = paths::ConcatPath(rightpath, rightrelpath); |
| 1072 | } |
| 1073 | |
| 1074 | String GetItemFileName(const CDiffContext& ctxt, const DIFFITEM &di, int index) |
| 1075 | { |
no test coverage detected