Exemple #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);
        }
Exemple #2
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;
 }