C# 클래스 Quartz.TextToSchedule.Grammars.EnglishGrammarHelper

상속: IGrammarHelper
파일 보기 프로젝트 열기: amazing-andrew/Quartz.TextToSchedule

공개 메소드들

메소드 설명
GetAmountValueFromString ( string amount ) : int

Gets the amount value from string.

GetDateTimeFromDateSpec ( string datespec ) : DateTime?

Gets the date time from date spec.

GetDateTimeFromDateSpecAndTime ( string datespec, string time ) : DateTime?

Gets the date time from date spec and time.

GetDayOfWeekFromString ( string dayOfWeekString ) : DayOfWeek

Gets the day of week from string.

GetDayOfWeekValues ( string dayOfWeekSpecs ) : List

Gets the day of week values.

GetDayValue ( string day ) : int

Gets the day value.

GetIntervalUnitValueFromString ( string intervalUnitString ) : IntervalUnit

Gets the time value from string.

GetMonthValue ( string monthName ) : int
GetMonthValues ( string monthSpecs ) : List

Gets the month values.

GetOrdinalValue ( string ordinal ) : Ordinal

Gets the ordinal value.

GetOrdinalValues ( string ordinals ) : List

Gets the ordinal values.

GetTimeFromTimeString ( string time ) : DateTime?

Gets the time from time string.

GetYearValue ( string year ) : int

Gets an individual year value.

Normalize ( string text ) : string

Normalizes the specified text.

비공개 메소드들

메소드 설명
AddDayOfWeekRangeToList ( DayOfWeek rangeStartValue, DayOfWeek rangeEndValue, List results ) : void
AddMonthRangeToList ( int rangeStartValue, int rangeEndValue, List results ) : void
NormalizeDayOfWeekAndMonthNames ( string s ) : string
NormalizeExtraSpaces ( string s ) : string
NormalizeRangedValues ( string s ) : string
ReplaceNoiseWords ( string s ) : string
ReplaceSpecialStrings ( string s ) : string

메소드 상세

GetAmountValueFromString() 공개 메소드

Gets the amount value from string.
public GetAmountValueFromString ( string amount ) : int
amount string The amount.
리턴 int

GetDateTimeFromDateSpec() 공개 메소드

Gets the date time from date spec.
public GetDateTimeFromDateSpec ( string datespec ) : DateTime?
datespec string The datespec.
리턴 DateTime?

GetDateTimeFromDateSpecAndTime() 공개 메소드

Gets the date time from date spec and time.
public GetDateTimeFromDateSpecAndTime ( string datespec, string time ) : DateTime?
datespec string The datespec.
time string The time.
리턴 DateTime?

GetDayOfWeekFromString() 공개 메소드

Gets the day of week from string.
Invalid Day Of Week String
public GetDayOfWeekFromString ( string dayOfWeekString ) : DayOfWeek
dayOfWeekString string The day of week string.
리턴 DayOfWeek

GetDayOfWeekValues() 공개 메소드

Gets the day of week values.
public GetDayOfWeekValues ( string dayOfWeekSpecs ) : List
dayOfWeekSpecs string The day of week specs.
리턴 List

GetDayValue() 공개 메소드

Gets the day value.
public GetDayValue ( string day ) : int
day string The day.
리턴 int

GetIntervalUnitValueFromString() 공개 메소드

Gets the time value from string.
Unknown time value string
public GetIntervalUnitValueFromString ( string intervalUnitString ) : IntervalUnit
intervalUnitString string The time value string.
리턴 IntervalUnit

GetMonthValue() 공개 메소드

public GetMonthValue ( string monthName ) : int
monthName string
리턴 int

GetMonthValues() 공개 메소드

Gets the month values.
public GetMonthValues ( string monthSpecs ) : List
monthSpecs string The month specs.
리턴 List

GetOrdinalValue() 공개 메소드

Gets the ordinal value.
public GetOrdinalValue ( string ordinal ) : Ordinal
ordinal string The ordinal.
리턴 Ordinal

GetOrdinalValues() 공개 메소드

Gets the ordinal values.
public GetOrdinalValues ( string ordinals ) : List
ordinals string The ordinals.
리턴 List

GetTimeFromTimeString() 공개 메소드

Gets the time from time string.
timeString is not a valid time
public GetTimeFromTimeString ( string time ) : DateTime?
time string The time.
리턴 DateTime?

GetYearValue() 공개 메소드

Gets an individual year value.
public GetYearValue ( string year ) : int
year string The year.
리턴 int

Normalize() 공개 메소드

Normalizes the specified text.
public Normalize ( string text ) : string
text string The text.
리턴 string