public PortugueseMergedParserConfiguration(DateTimeOptions options) : base(options)
        {
            BeforeRegex = PortugueseMergedExtractorConfiguration.BeforeRegex;
            AfterRegex  = PortugueseMergedExtractorConfiguration.AfterRegex;
            SinceRegex  = PortugueseMergedExtractorConfiguration.SinceRegex;

            DatePeriodParser     = new BaseDatePeriodParser(new PortugueseDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new PortugueseTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new DateTimePeriodParser(new PortugueseDateTimePeriodParserConfiguration(this));
            GetParser            = new BaseSetParser(new PortugueseSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new PortugueseHolidayParserConfiguration());
        }
예제 #2
0
        public PortugueseMergedParserConfiguration(DateTimeOptions options) : base(options)
        {
            BeforeRegex            = PortugueseMergedExtractorConfiguration.BeforeRegex;
            AfterRegex             = PortugueseMergedExtractorConfiguration.AfterRegex;
            SinceRegex             = PortugueseMergedExtractorConfiguration.SinceRegex;
            YearAfterRegex         = PortugueseMergedExtractorConfiguration.YearAfterRegex;
            YearRegex              = PortugueseDatePeriodExtractorConfiguration.YearRegex;
            SuperfluousWordMatcher = PortugueseMergedExtractorConfiguration.SuperfluousWordMatcher;

            DatePeriodParser     = new BaseDatePeriodParser(new PortugueseDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new PortugueseTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new DateTimePeriodParser(new PortugueseDateTimePeriodParserConfiguration(this));
            GetParser            = new BaseSetParser(new PortugueseSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new PortugueseHolidayParserConfiguration());
            TimeZoneParser       = new BaseTimeZoneParser();
        }
예제 #3
0
        public PortugueseMergedParserConfiguration(IOptionsConfiguration config) : base(config)
        {
            BeforeRegex            = PortugueseMergedExtractorConfiguration.BeforeRegex;
            AfterRegex             = PortugueseMergedExtractorConfiguration.AfterRegex;
            SinceRegex             = PortugueseMergedExtractorConfiguration.SinceRegex;
            AroundRegex            = PortugueseMergedExtractorConfiguration.AroundRegex;
            DateAfter              = PortugueseMergedExtractorConfiguration.DateAfterRegex;
            YearRegex              = PortugueseDatePeriodExtractorConfiguration.YearRegex;
            SuperfluousWordMatcher = PortugueseMergedExtractorConfiguration.SuperfluousWordMatcher;

            DatePeriodParser     = new BaseDatePeriodParser(new PortugueseDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new PortugueseTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new DateTimePeriodParser(new PortugueseDateTimePeriodParserConfiguration(this));
            SetParser            = new BaseSetParser(new PortugueseSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new PortugueseHolidayParserConfiguration(this));
            TimeZoneParser       = new DummyTimeZoneParser();
        }