MCPcopy Create free account
hub / github.com/WinMerge/winmerge / FormatFilterErrorSummary

Function FormatFilterErrorSummary

Src/FilterErrorMessages.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44String FormatFilterErrorSummary(const FileFilterErrorInfo& fei)
45{
46 if (fei.errorCode == FILTER_ERROR_NO_ERROR)
47 return _T("");
48 String msg;
49 msg = GetFilterErrorMessage(fei.errorCode);
50 if (fei.errorPosition >= 0)
51 msg += _T(" ") + _("at position") + _T(" ") + strutils::to_str(fei.errorPosition + 1);
52 msg += _T(": ") + ucr::toTString(fei.srcText);
53 if (!fei.context.empty())
54 msg += _T(" (") + fei.context + _T(")");
55 return msg;
56}
57
58String FormatFilterErrorSummary(const FilterExpression& fe)
59{

Callers 7

CheckFilterMethod · 0.85
CreateMethod · 0.85
OnInitialUpdateMethod · 0.85
OnInitDialogMethod · 0.85
OnInfoTipMethod · 0.85
OnInitDialogMethod · 0.85
mainFunction · 0.85

Calls 4

GetFilterErrorMessageFunction · 0.85
toTStringFunction · 0.85
to_strFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected