コード例 #1
0
        static ITag ScanDayPortions(Token token, Options options)
        {
            ITag tag = null;

            DayPortionPatterns.ForEach(item =>
            {
                if (item.Pattern.IsMatch(token.Value))
                {
                    tag = new EnumRepeaterDayPortion(item.Portion);
                    return;
                }
            });
            return(tag);
        }
コード例 #2
0
ファイル: RepeaterScanner.cs プロジェクト: mmozuras/nChronic
 static ITag ScanDayPortions(Token token, Options options)
 {
     ITag tag = null;
     DayPortionPatterns.ForEach(item =>
         {
             if (item.Pattern.IsMatch(token.Value))
             {
                 tag = new EnumRepeaterDayPortion(item.Portion);
                 return;
             }
         });
     return tag;
 }