public SpanishMergedParserConfiguration() : base() { BeforeRegex = SpanishMergedExtractorConfiguration.BeforeRegex; AfterRegex = SpanishMergedExtractorConfiguration.AfterRegex; DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new DateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); GetParser = new BaseSetParser(new SpanishSetParserConfiguration(this)); HolidayParser = new BaseHolidayParser(new SpanishHolidayParserConfiguration()); }
public SpanishMergedParserConfiguration() : base() { BeforeRegex = new Regex(@"^\s*antes\s+", RegexOptions.IgnoreCase | RegexOptions.Singleline); AfterRegex = new Regex(@"^\s*despues\s+", RegexOptions.IgnoreCase | RegexOptions.Singleline); DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new DateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); SetParser = new BaseSetParser(new SpanishSetParserConfiguration(this)); HolidayParser = new BaseHolidayParser(new SpanishHolidayParserConfiguration()); }
public SpanishMergedParserConfiguration(DateTimeOptions options) : base(options) { BeforeRegex = SpanishMergedExtractorConfiguration.BeforeRegex; AfterRegex = SpanishMergedExtractorConfiguration.AfterRegex; SinceRegex = SpanishMergedExtractorConfiguration.SinceRegex; YearAfterRegex = SpanishMergedExtractorConfiguration.YearAfterRegex; YearRegex = SpanishDatePeriodExtractorConfiguration.YearRegex; DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new DateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); GetParser = new BaseSetParser(new SpanishSetParserConfiguration(this)); HolidayParser = new BaseHolidayParser(new SpanishHolidayParserConfiguration()); TimeZoneParser = new BaseTimeZoneParser(); }
public SpanishMergedParserConfiguration(IOptionsConfiguration config) : base(config) { BeforeRegex = SpanishMergedExtractorConfiguration.BeforeRegex; AfterRegex = SpanishMergedExtractorConfiguration.AfterRegex; SinceRegex = SpanishMergedExtractorConfiguration.SinceRegex; YearAfterRegex = SpanishMergedExtractorConfiguration.YearAfterRegex; YearRegex = SpanishDatePeriodExtractorConfiguration.YearRegex; SuperfluousWordMatcher = SpanishMergedExtractorConfiguration.SuperfluousWordMatcher; DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new DateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); SetParser = new BaseSetParser(new SpanishSetParserConfiguration(this)); HolidayParser = new BaseHolidayParser(new SpanishHolidayParserConfiguration(this)); TimeZoneParser = new BaseTimeZoneParser(); }
public SpanishMergedParserConfiguration(IDateTimeOptionsConfiguration config) : base(config) { BeforeRegex = SpanishMergedExtractorConfiguration.BeforeRegex; AfterRegex = SpanishMergedExtractorConfiguration.AfterRegex; SinceRegex = (config.Options & DateTimeOptions.ExperimentalMode) != 0 ? SpanishMergedExtractorConfiguration.SinceRegexExp : SpanishMergedExtractorConfiguration.SinceRegex; AroundRegex = SpanishMergedExtractorConfiguration.AroundRegex; EqualRegex = SpanishMergedExtractorConfiguration.EqualRegex; SuffixAfter = SpanishMergedExtractorConfiguration.SuffixAfterRegex; YearRegex = SpanishDatePeriodExtractorConfiguration.YearRegex; SuperfluousWordMatcher = SpanishMergedExtractorConfiguration.SuperfluousWordMatcher; DatePeriodParser = new BaseDatePeriodParser(new SpanishDatePeriodParserConfiguration(this)); TimePeriodParser = new BaseTimePeriodParser(new SpanishTimePeriodParserConfiguration(this)); DateTimePeriodParser = new DateTimePeriodParser(new SpanishDateTimePeriodParserConfiguration(this)); SetParser = new BaseSetParser(new SpanishSetParserConfiguration(this)); HolidayParser = new BaseHolidayParser(new SpanishHolidayParserConfiguration(this)); TimeZoneParser = new DummyTimeZoneParser(); }