public ChineseDateTimeParserConfiguration()
 {
     DateParser           = new DateParser(this);
     TimeParser           = new TimeParserChs(this);
     DateTimeParser       = new DateTimeParserChs(this);
     DatePeriodParser     = new DatePeriodParserChs(this);
     TimePeriodParser     = new TimePeriodParserChs(this);
     DateTimePeriodParser = new DateTimePeriodParserChs(this);
     DurationParser       = new DurationParserChs(this);
     SetParser            = new SetParserChs(this);
     HolidayParser        = new HolidayParserChs(this);
     UnitMap             = InitUnitMap();
     UnitValueMap        = InitUnitValueMap();
     SeasonMap           = InitSeasonMap();
     SeasonValueMap      = InitSeasonValueMap();
     CardinalMap         = InitCardinalMap();
     DayOfMonth          = InitDayOfMonth();
     DayOfWeek           = InitDayOfWeek();
     MonthOfYear         = InitMonthOfYear();
     Numbers             = InitNumbers();
     DateRegexList       = DateExtractorChs.DateRegexList;
     NextRegex           = DateExtractorChs.NextRegex;
     ThisRegex           = DateExtractorChs.ThisRegex;
     LastRegex           = DateExtractorChs.LastRegex;
     StrictWeekDayRegex  = DateExtractorChs.WeekDayRegex;
     WeekDayOfMonthRegex = DateExtractorChs.WeekDayOfMonthRegex;
 }
示例#2
0
 public ChineseDateTimeParserConfiguration(DateTimeOptions options = DateTimeOptions.None) : base(options)
 {
     DateParser           = new DateParser(this);
     TimeParser           = new TimeParserChs(this);
     DateTimeParser       = new DateTimeParserChs(this);
     DatePeriodParser     = new DatePeriodParserChs(this);
     TimePeriodParser     = new TimePeriodParserChs(this);
     DateTimePeriodParser = new DateTimePeriodParserChs(this);
     DurationParser       = new DurationParserChs(this);
     GetParser            = new SetParserChs(this);
     HolidayParser        = new HolidayParserChs(this);
     UnitMap             = DateTimeDefinitions.ParserConfigurationUnitMap.ToImmutableDictionary();
     UnitValueMap        = DateTimeDefinitions.ParserConfigurationUnitValueMap.ToImmutableDictionary();
     SeasonMap           = DateTimeDefinitions.ParserConfigurationSeasonMap.ToImmutableDictionary();
     SeasonValueMap      = DateTimeDefinitions.ParserConfigurationSeasonValueMap.ToImmutableDictionary();
     CardinalMap         = DateTimeDefinitions.ParserConfigurationCardinalMap.ToImmutableDictionary();
     DayOfMonth          = DateTimeDefinitions.ParserConfigurationDayOfMonth.ToImmutableDictionary();
     DayOfWeek           = DateTimeDefinitions.ParserConfigurationDayOfWeek.ToImmutableDictionary();
     MonthOfYear         = DateTimeDefinitions.ParserConfigurationMonthOfYear.ToImmutableDictionary();
     Numbers             = InitNumbers();
     DateRegexList       = DateExtractorChs.DateRegexList;
     NextRegex           = DateExtractorChs.NextRegex;
     ThisRegex           = DateExtractorChs.ThisRegex;
     LastRegex           = DateExtractorChs.LastRegex;
     StrictWeekDayRegex  = DateExtractorChs.WeekDayRegex;
     WeekDayOfMonthRegex = DateExtractorChs.WeekDayOfMonthRegex;
     BeforeRegex         = MergedExtractorChs.BeforeRegex;
     AfterRegex          = MergedExtractorChs.AfterRegex;
     UntilRegex          = MergedExtractorChs.UntilRegex;
     SincePrefixRegex    = MergedExtractorChs.SincePrefixRegex;
     SinceSuffixRegex    = MergedExtractorChs.SinceSuffixRegex;
 }
 public ChineseDateTimeParserConfiguration()
 {
     DateParser           = new DateParser(this);
     TimeParser           = new TimeParserChs(this);
     DateTimeParser       = new DateTimeParserChs(this);
     DatePeriodParser     = new DatePeriodParserChs(this);
     TimePeriodParser     = new TimePeriodParserChs(this);
     DateTimePeriodParser = new DateTimePeriodParserChs(this);
     DurationParser       = new DurationParserChs(this);
     GetParser            = new SetParserChs(this);
     HolidayParser        = new HolidayParserChs(this);
     UnitMap             = DateTimeDefinitions.ParserConfigurationUnitMap.ToImmutableDictionary();
     UnitValueMap        = DateTimeDefinitions.ParserConfigurationUnitValueMap.ToImmutableDictionary();
     SeasonMap           = DateTimeDefinitions.ParserConfigurationSeasonMap.ToImmutableDictionary();
     SeasonValueMap      = DateTimeDefinitions.ParserConfigurationSeasonValueMap.ToImmutableDictionary();
     CardinalMap         = DateTimeDefinitions.ParserConfigurationCardinalMap.ToImmutableDictionary();
     DayOfMonth          = DateTimeDefinitions.ParserConfigurationDayOfMonth.ToImmutableDictionary();
     DayOfWeek           = DateTimeDefinitions.ParserConfigurationDayOfWeek.ToImmutableDictionary();
     MonthOfYear         = DateTimeDefinitions.ParserConfigurationMonthOfYear.ToImmutableDictionary();
     Numbers             = InitNumbers();
     DateRegexList       = DateExtractorChs.DateRegexList;
     NextRegex           = DateExtractorChs.NextRegex;
     ThisRegex           = DateExtractorChs.ThisRegex;
     LastRegex           = DateExtractorChs.LastRegex;
     StrictWeekDayRegex  = DateExtractorChs.WeekDayRegex;
     WeekDayOfMonthRegex = DateExtractorChs.WeekDayOfMonthRegex;
 }