| 49 | |
| 50 | template <int npanes> |
| 51 | static void |
| 52 | PrintVirtualLineToRealLineMap( |
| 53 | const String& name, |
| 54 | const std::vector<std::array<int, npanes>>& vlines) |
| 55 | { |
| 56 | OutputDebugString((_T("[") + name + _T("]\n")).c_str()); |
| 57 | for (size_t i = 0; i < vlines.size(); ++i) |
| 58 | { |
| 59 | String str = strutils::format(_T("vline%d: "), static_cast<int>(i)); |
| 60 | std::vector<String> ary; |
| 61 | ary.reserve(npanes); |
| 62 | for (int j = 0; j < npanes; ++j) |
| 63 | ary.push_back(vlines[i][j] == DiffMap::GHOST_MAP_ENTRY ? _T("-----") : strutils::format(_T("%5d"), vlines[i][j])); |
| 64 | str += strutils::join(ary.begin(), ary.end(), _T(",")) + _T("\n"); |
| 65 | OutputDebugString(str.c_str()); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | #ifdef _DEBUG |
| 70 | static void |
no test coverage detected