deps/unrar/cmdfilter.cpp
// Return 'true' if we need to exclude the file from processing.
Return 'true' if we need to exclude the file from processing.
Return ' true ' if we need to exclude the file from processing .
bool CommandData::TimeCheck(RarTime &ftm,RarTime &ftc,RarTime &fta)
{
  bool FilterOR=false;
  if (FileMtimeBefore.IsSet()) 
    if (ftm>=FileMtimeBefore) 
      if (FileMtimeBeforeOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileMtimeBeforeOR) 
        return false; 
  if (FileMtimeAfter.IsSet()) 
    if (ftm<FileMtimeAfter) 
      if (FileMtimeAfterOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileMtimeAfterOR) 
        return false; 
  if (FileCtimeBefore.IsSet()) 
    if (ftc>=FileCtimeBefore) 
      if (FileCtimeBeforeOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileCtimeBeforeOR) 
        return false; 
  if (FileCtimeAfter.IsSet()) 
    if (ftc<FileCtimeAfter) 
      if (FileCtimeAfterOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileCtimeAfterOR) 
        return false; 
  if (FileAtimeBefore.IsSet()) 
    if (fta>=FileAtimeBefore) 
      if (FileAtimeBeforeOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileAtimeBeforeOR) 
        return false; 
  if (FileAtimeAfter.IsSet()) 
    if (fta<FileAtimeAfter) 
      if (FileAtimeAfterOR) 
        FilterOR=true; 
      else
        return true; 
    else  
      if (FileAtimeAfterOR) 
        return false; 
  return FilterOR; 
}
bool CommandData :: TimeCheck ( RarTime & ftm , RarTime & ftc , RarTime & fta ) { bool FilterOR = false ; if ( FileMtimeBefore . IsSet ( ) ) if ( ftm >= FileMtimeBefore ) if ( FileMtimeBeforeOR ) FilterOR = true ; else return true ; else if ( FileMtimeBeforeOR ) return false ; if ( FileMtimeAfter . IsSet ( ) ) if ( ftm < FileMtimeAfter ) if ( FileMtimeAfterOR ) FilterOR = true ; else return true ; else if ( FileMtimeAfterOR ) return false ; if ( FileCtimeBefore . IsSet ( ) ) if ( ftc >= FileCtimeBefore ) if ( FileCtimeBeforeOR ) FilterOR = true ; else return true ; else if ( FileCtimeBeforeOR ) return false ; if ( FileCtimeAfter . IsSet ( ) ) if ( ftc < FileCtimeAfter ) if ( FileCtimeAfterOR ) FilterOR = true ; else return true ; else if ( FileCtimeAfterOR ) return false ; if ( FileAtimeBefore . IsSet ( ) ) if ( fta >= FileAtimeBefore ) if ( FileAtimeBeforeOR ) FilterOR = true ; else return true ; else if ( FileAtimeBeforeOR ) return false ; if ( FileAtimeAfter . IsSet ( ) ) if ( fta < FileAtimeAfter ) if ( FileAtimeAfterOR ) FilterOR = true ; else return true ; else if ( FileAtimeAfterOR ) return false ; return FilterOR ; }
Return 'true' if we need to exclude the file from processing.
Return ' true ' if we need to exclude the file from processing .
// Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Filter present. // Condition not matched. // Not matched OR filter is present. // Exclude file in AND mode. // Condition matched. // Include file in OR mode. // Exclude if all OR filters are not matched.