C# Class Quartz.TextToSchedule.Grammars.EnglishGrammarHelper

Inheritance: IGrammarHelper
Afficher le fichier Open project: amazing-andrew/Quartz.TextToSchedule

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

GetAmountValueFromString() public méthode

Gets the amount value from string.
public GetAmountValueFromString ( string amount ) : int
amount string The amount.
Résultat int

GetDateTimeFromDateSpec() public méthode

Gets the date time from date spec.
public GetDateTimeFromDateSpec ( string datespec ) : DateTime?
datespec string The datespec.
Résultat DateTime?

GetDateTimeFromDateSpecAndTime() public méthode

Gets the date time from date spec and time.
public GetDateTimeFromDateSpecAndTime ( string datespec, string time ) : DateTime?
datespec string The datespec.
time string The time.
Résultat DateTime?

GetDayOfWeekFromString() public méthode

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

GetDayOfWeekValues() public méthode

Gets the day of week values.
public GetDayOfWeekValues ( string dayOfWeekSpecs ) : List
dayOfWeekSpecs string The day of week specs.
Résultat List

GetDayValue() public méthode

Gets the day value.
public GetDayValue ( string day ) : int
day string The day.
Résultat int

GetIntervalUnitValueFromString() public méthode

Gets the time value from string.
Unknown time value string
public GetIntervalUnitValueFromString ( string intervalUnitString ) : IntervalUnit
intervalUnitString string The time value string.
Résultat IntervalUnit

GetMonthValue() public méthode

public GetMonthValue ( string monthName ) : int
monthName string
Résultat int

GetMonthValues() public méthode

Gets the month values.
public GetMonthValues ( string monthSpecs ) : List
monthSpecs string The month specs.
Résultat List

GetOrdinalValue() public méthode

Gets the ordinal value.
public GetOrdinalValue ( string ordinal ) : Ordinal
ordinal string The ordinal.
Résultat Ordinal

GetOrdinalValues() public méthode

Gets the ordinal values.
public GetOrdinalValues ( string ordinals ) : List
ordinals string The ordinals.
Résultat List

GetTimeFromTimeString() public méthode

Gets the time from time string.
timeString is not a valid time
public GetTimeFromTimeString ( string time ) : DateTime?
time string The time.
Résultat DateTime?

GetYearValue() public méthode

Gets an individual year value.
public GetYearValue ( string year ) : int
year string The year.
Résultat int

Normalize() public méthode

Normalizes the specified text.
public Normalize ( string text ) : string
text string The text.
Résultat string