Return 'true' if we need to exclude the file from processing as result of -x switch. If CheckInclList is true, we also check the file against the include list created with -n switch.
| 2 | // of -x switch. If CheckInclList is true, we also check the file against |
| 3 | // the include list created with -n switch. |
| 4 | bool CommandData::ExclCheck(const wchar *CheckName,bool Dir,bool CheckFullPath,bool CheckInclList) |
| 5 | { |
| 6 | if (CheckArgs(&ExclArgs,Dir,CheckName,CheckFullPath,MATCH_WILDSUBPATH)) |
| 7 | return true; |
| 8 | if (!CheckInclList || InclArgs.ItemsCount()==0) |
| 9 | return false; |
| 10 | if (CheckArgs(&InclArgs,Dir,CheckName,CheckFullPath,MATCH_WILDSUBPATH)) |
| 11 | return false; |
| 12 | return true; |
| 13 | } |
| 14 | |
| 15 | |
| 16 | bool CommandData::CheckArgs(StringList *Args,bool Dir,const wchar *CheckName,bool CheckFullPath,int MatchMode) |
no test coverage detected