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()); }
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(); }
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(); }