Beispiel #1
0
 public EnglishMergedParserConfiguration() : base()
 {
     BeforeRegex          = EnglishMergedExtractorConfiguration.BeforeRegex;
     AfterRegex           = EnglishMergedExtractorConfiguration.AfterRegex;
     DatePeriodParser     = new BaseDatePeriodParser(new EnglishDatePeriodParserConfiguration(this));
     TimePeriodParser     = new BaseTimePeriodParser(new EnglishTimePeriodParserConfiguration(this));
     DateTimePeriodParser = new BaseDateTimePeriodParser(new EnglishDateTimePeriodParserConfiguration(this));
     GetParser            = new BaseSetParser(new EnglishSetParserConfiguration(this));
     HolidayParser        = new BaseHolidayParser(new EnglishHolidayParserConfiguration());
 }
 public EnglishMergedParserConfiguration() : base()
 {
     BeforeRegex          = new Regex(DateTimeDefinitions.BeforeRegex, RegexOptions.IgnoreCase | RegexOptions.Singleline);
     AfterRegex           = new Regex(DateTimeDefinitions.AfterRegex, RegexOptions.IgnoreCase | RegexOptions.Singleline);
     DatePeriodParser     = new BaseDatePeriodParser(new EnglishDatePeriodParserConfiguration(this));
     TimePeriodParser     = new BaseTimePeriodParser(new EnglishTimePeriodParserConfiguration(this));
     DateTimePeriodParser = new BaseDateTimePeriodParser(new EnglishDateTimePeriodParserConfiguration(this));
     GetParser            = new BaseSetParser(new EnglishSetParserConfiguration(this));
     HolidayParser        = new BaseHolidayParser(new EnglishHolidayParserConfiguration());
 }
 public FrenchMergedParserConfiguration() : base()
 {
     BeforeRegex          = FrenchMergedExtractorConfiguration.BeforeRegex;
     AfterRegex           = FrenchMergedExtractorConfiguration.AfterRegex;
     SinceRegex           = FrenchMergedExtractorConfiguration.SinceRegex;
     DatePeriodParser     = new BaseDatePeriodParser(new FrenchDatePeriodParserConfiguration(this));
     TimePeriodParser     = new BaseTimePeriodParser(new FrenchTimePeriodParserConfiguration(this));
     DateTimePeriodParser = new BaseDateTimePeriodParser(new FrenchDateTimePeriodParserConfiguration(this));
     GetParser            = new BaseSetParser(new FrenchSetParserConfiguration(this));
     HolidayParser        = new BaseHolidayParser(new FrenchHolidayParserConfiguration());
 }
Beispiel #4
0
 public GermanMergedParserConfiguration(DateTimeOptions options) : base(options)
 {
     BeforeRegex          = GermanMergedExtractorConfiguration.BeforeRegex;
     AfterRegex           = GermanMergedExtractorConfiguration.AfterRegex;
     SinceRegex           = GermanMergedExtractorConfiguration.SinceRegex;
     DatePeriodParser     = new BaseDatePeriodParser(new GermanDatePeriodParserConfiguration(this));
     TimePeriodParser     = new BaseTimePeriodParser(new GermanTimePeriodParserConfiguration(this));
     DateTimePeriodParser = new BaseDateTimePeriodParser(new GermanDateTimePeriodParserConfiguration(this));
     GetParser            = new BaseSetParser(new GermanSetParserConfiguration(this));
     HolidayParser        = new BaseHolidayParser(new GermanHolidayParserConfiguration());
 }
Beispiel #5
0
 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());
 }
Beispiel #6
0
        public SpanishMergedParserConfiguration(DateTimeOptions options) : base(options)
        {
            BeforeRegex = SpanishMergedExtractorConfiguration.BeforeRegex;
            AfterRegex  = SpanishMergedExtractorConfiguration.AfterRegex;
            SinceRegex  = SpanishMergedExtractorConfiguration.SinceRegex;

            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 FrenchMergedParserConfiguration(DateTimeOptions options) : base(options)
 {
     BeforeRegex            = FrenchMergedExtractorConfiguration.BeforeRegex;
     AfterRegex             = FrenchMergedExtractorConfiguration.AfterRegex;
     SinceRegex             = FrenchMergedExtractorConfiguration.SinceRegex;
     YearAfterRegex         = FrenchMergedExtractorConfiguration.YearAfterRegex;
     SuperfluousWordMatcher = FrenchMergedExtractorConfiguration.SuperfluousWordMatcher;
     YearRegex      = FrenchDatePeriodExtractorConfiguration.YearRegex;
     SetParser      = new BaseSetParser(new FrenchSetParserConfiguration(this));
     HolidayParser  = new BaseHolidayParser(new FrenchHolidayParserConfiguration());
     TimeZoneParser = new BaseTimeZoneParser();
 }
 public FrenchMergedParserConfiguration(IOptionsConfiguration config) : base(config)
 {
     BeforeRegex            = FrenchMergedExtractorConfiguration.BeforeRegex;
     AfterRegex             = FrenchMergedExtractorConfiguration.AfterRegex;
     SinceRegex             = FrenchMergedExtractorConfiguration.SinceRegex;
     AroundRegex            = FrenchMergedExtractorConfiguration.AroundRegex;
     DateAfter              = FrenchMergedExtractorConfiguration.DateAfterRegex;
     YearRegex              = FrenchDatePeriodExtractorConfiguration.YearRegex;
     SuperfluousWordMatcher = FrenchMergedExtractorConfiguration.SuperfluousWordMatcher;
     SetParser              = new BaseSetParser(new FrenchSetParserConfiguration(this));
     HolidayParser          = new BaseHolidayParser(new FrenchHolidayParserConfiguration(this));
     TimeZoneParser         = new DummyTimeZoneParser();
 }
        public PortugueseMergedParserConfiguration(DateTimeOptions options) : base(options)
        {
            BeforeRegex    = PortugueseMergedExtractorConfiguration.BeforeRegex;
            AfterRegex     = PortugueseMergedExtractorConfiguration.AfterRegex;
            SinceRegex     = PortugueseMergedExtractorConfiguration.SinceRegex;
            YearAfterRegex = PortugueseMergedExtractorConfiguration.YearAfterRegex;
            YearRegex      = PortugueseDatePeriodExtractorConfiguration.YearRegex;

            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());
        }
Beispiel #10
0
 public GermanMergedParserConfiguration(DateTimeOptions options) : base(options)
 {
     BeforeRegex            = GermanMergedExtractorConfiguration.BeforeRegex;
     AfterRegex             = GermanMergedExtractorConfiguration.AfterRegex;
     SinceRegex             = GermanMergedExtractorConfiguration.SinceRegex;
     YearAfterRegex         = GermanMergedExtractorConfiguration.YearAfterRegex;
     YearRegex              = GermanDatePeriodExtractorConfiguration.YearRegex;
     SuperfluousWordMatcher = GermanMergedExtractorConfiguration.SuperfluousWordMatcher;
     DatePeriodParser       = new BaseDatePeriodParser(new GermanDatePeriodParserConfiguration(this));
     TimePeriodParser       = new BaseTimePeriodParser(new GermanTimePeriodParserConfiguration(this));
     DateTimePeriodParser   = new BaseDateTimePeriodParser(new GermanDateTimePeriodParserConfiguration(this));
     SetParser              = new BaseSetParser(new GermanSetParserConfiguration(this));
     HolidayParser          = new BaseHolidayParser(new GermanHolidayParserConfiguration());
     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 ItalianMergedParserConfiguration(IOptionsConfiguration options) : base(options)
 {
     BeforeRegex            = ItalianMergedExtractorConfiguration.BeforeRegex;
     AfterRegex             = ItalianMergedExtractorConfiguration.AfterRegex;
     SinceRegex             = ItalianMergedExtractorConfiguration.SinceRegex;
     AroundRegex            = ItalianMergedExtractorConfiguration.AroundRegex;
     DateAfter              = ItalianMergedExtractorConfiguration.DateAfterRegex;
     YearRegex              = ItalianDatePeriodExtractorConfiguration.YearRegex;
     SuperfluousWordMatcher = ItalianMergedExtractorConfiguration.SuperfluousWordMatcher;
     DatePeriodParser       = new BaseDatePeriodParser(new ItalianDatePeriodParserConfiguration(this));
     TimePeriodParser       = new BaseTimePeriodParser(new ItalianTimePeriodParserConfiguration(this));
     DateTimePeriodParser   = new BaseDateTimePeriodParser(new ItalianDateTimePeriodParserConfiguration(this));
     SetParser              = new BaseSetParser(new ItalianSetParserConfiguration(this));
     HolidayParser          = new BaseHolidayParser(new ItalianHolidayParserConfiguration(this));
     TimeZoneParser         = new BaseTimeZoneParser();
 }
 public GermanMergedParserConfiguration(IOptionsConfiguration config) : base(config)
 {
     BeforeRegex            = GermanMergedExtractorConfiguration.BeforeRegex;
     AfterRegex             = GermanMergedExtractorConfiguration.AfterRegex;
     SinceRegex             = GermanMergedExtractorConfiguration.SinceRegex;
     AroundRegex            = GermanMergedExtractorConfiguration.AroundRegex;
     DateAfter              = GermanMergedExtractorConfiguration.DateAfterRegex;
     YearRegex              = GermanDatePeriodExtractorConfiguration.YearRegex;
     SuperfluousWordMatcher = GermanMergedExtractorConfiguration.SuperfluousWordMatcher;
     DatePeriodParser       = new BaseDatePeriodParser(new GermanDatePeriodParserConfiguration(this));
     TimePeriodParser       = new BaseTimePeriodParser(new GermanTimePeriodParserConfiguration(this));
     DateTimePeriodParser   = new BaseDateTimePeriodParser(new GermanDateTimePeriodParserConfiguration(this));
     SetParser              = new BaseSetParser(new GermanSetParserConfiguration(this));
     HolidayParser          = new HolidayParserGer(new GermanHolidayParserConfiguration(this));
     TimeZoneParser         = new DummyTimeZoneParser();
 }
        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 BaseTimeZoneParser();
        }
Beispiel #15
0
        public TurkishMergedParserConfiguration(IDateTimeOptionsConfiguration config)
            : base(config)
        {
            AroundRegex = TurkishMergedExtractorConfiguration.AroundRegex;
            EqualRegex  = TurkishMergedExtractorConfiguration.EqualRegex;
            SuffixAfter = TurkishMergedExtractorConfiguration.SuffixAfterRegex;
            YearRegex   = TurkishDatePeriodExtractorConfiguration.YearRegex;

            SuperfluousWordMatcher = TurkishMergedExtractorConfiguration.SuperfluousWordMatcher;

            DatePeriodParser     = new BaseDatePeriodParser(new TurkishDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new TurkishTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new BaseDateTimePeriodParser(new TurkishDateTimePeriodParserConfiguration(this));
            SetParser            = new BaseSetParser(new TurkishSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new TurkishHolidayParserConfiguration(this));
            TimeZoneParser       = new BaseTimeZoneParser(new TurkishTimeZoneParserConfiguration(this));
        }
        public DutchMergedParserConfiguration(IDateTimeOptionsConfiguration config)
            : base(config)
        {
            BeforeRegex            = DutchMergedExtractorConfiguration.BeforeRegex;
            AfterRegex             = DutchMergedExtractorConfiguration.AfterRegex;
            SinceRegex             = DutchMergedExtractorConfiguration.SinceRegex;
            AroundRegex            = DutchMergedExtractorConfiguration.AroundRegex;
            EqualRegex             = DutchMergedExtractorConfiguration.EqualRegex;
            SuffixAfter            = DutchMergedExtractorConfiguration.SuffixAfterRegex;
            YearRegex              = DutchDatePeriodExtractorConfiguration.YearRegex;
            SuperfluousWordMatcher = DutchMergedExtractorConfiguration.SuperfluousWordMatcher;

            DatePeriodParser     = new BaseDatePeriodParser(new DutchDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new DutchTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new BaseDateTimePeriodParser(new DutchDateTimePeriodParserConfiguration(this));
            SetParser            = new BaseSetParser(new DutchSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new DutchHolidayParserConfiguration(this));
            TimeZoneParser       = new BaseTimeZoneParser();
        }
Beispiel #17
0
        public SwedishMergedParserConfiguration(IDateTimeOptionsConfiguration config)
            : base(config)
        {
            BeforeRegex = SwedishMergedExtractorConfiguration.BeforeRegex;
            AfterRegex  = SwedishMergedExtractorConfiguration.AfterRegex;
            SinceRegex  = (config.Options & DateTimeOptions.ExperimentalMode) != 0 ? SwedishMergedExtractorConfiguration.SinceRegexExp :
                          SwedishMergedExtractorConfiguration.SinceRegex;
            AroundRegex = SwedishMergedExtractorConfiguration.AroundRegex;
            EqualRegex  = SwedishMergedExtractorConfiguration.EqualRegex;
            SuffixAfter = SwedishMergedExtractorConfiguration.SuffixAfterRegex;
            YearRegex   = SwedishDatePeriodExtractorConfiguration.YearRegex;

            SuperfluousWordMatcher = SwedishMergedExtractorConfiguration.SuperfluousWordMatcher;

            DatePeriodParser     = new BaseDatePeriodParser(new SwedishDatePeriodParserConfiguration(this));
            TimePeriodParser     = new BaseTimePeriodParser(new SwedishTimePeriodParserConfiguration(this));
            DateTimePeriodParser = new BaseDateTimePeriodParser(new SwedishDateTimePeriodParserConfiguration(this));
            SetParser            = new BaseSetParser(new SwedishSetParserConfiguration(this));
            HolidayParser        = new BaseHolidayParser(new SwedishHolidayParserConfiguration(this));
            TimeZoneParser       = new BaseTimeZoneParser(new SwedishTimeZoneParserConfiguration(this));
        }