示例#1
0
 private bool FindDay(PrintIssue issue, string filename)
 {
     foreach (RegexValues rv in _dayRegexList.Values)
     {
         //Match match = rv.Match_old(filename);
         MatchValues matchValues = rv.Match(filename);
         //while (match.Success)
         while (matchValues.Success)
         {
             //if (issue.MatchSetValues(rv, v => zdate.IsDayValid(v)))
             if (issue.MatchSetValues(matchValues, v => zdate.IsDayValid(v)))
             {
                 return(true);
             }
             //match = rv.Next_old();
             matchValues = matchValues.Next();
         }
     }
     return(false);
 }
示例#2
0
 private bool FindNumber(PrintIssue issue, string filename)
 {
     foreach (RegexValues rv in _numberRegexList.Values)
     {
         //Match match = rv.Match_old(filename);
         MatchValues matchValues = rv.Match(filename);
         //while (match.Success)
         while (matchValues.Success)
         {
             //if (issue.MatchSetValues(rv, v => PrintIssue.IsNumberValid(v)))
             if (issue.MatchSetValues(matchValues, v => PrintIssue.IsNumberValid(v)))
             {
                 if (issue.Control())
                 {
                     return(true);
                 }
             }
             //match = rv.Next_old();
             matchValues = matchValues.Next();
         }
     }
     return(false);
 }
示例#3
0
 private bool FindNumber(PrintIssue issue, string filename)
 {
     foreach (RegexValues rv in _numberRegexList.Values)
     {
         //Match match = rv.Match_old(filename);
         MatchValues matchValues = rv.Match(filename);
         //while (match.Success)
         while (matchValues.Success)
         {
             //if (issue.MatchSetValues(rv, v => PrintIssue.IsNumberValid(v)))
             if (issue.MatchSetValues(matchValues, v => PrintIssue.IsNumberValid(v)))
             {
                 if (issue.Control())
                 {
                     return true;
                 }
             }
             //match = rv.Next_old();
             matchValues = matchValues.Next();
         }
     }
     return false;
 }
示例#4
0
 private bool FindDay(PrintIssue issue, string filename)
 {
     foreach (RegexValues rv in _dayRegexList.Values)
     {
         //Match match = rv.Match_old(filename);
         MatchValues matchValues = rv.Match(filename);
         //while (match.Success)
         while (matchValues.Success)
         {
             //if (issue.MatchSetValues(rv, v => zdate.IsDayValid(v)))
             if (issue.MatchSetValues(matchValues, v => zdate.IsDayValid(v)))
             {
                 return true;
             }
             //match = rv.Next_old();
             matchValues = matchValues.Next();
         }
     }
     return false;
 }