C# Class Subtext.Framework.Util.WebPathStripper

Summary description for WebPathStripper.
Afficher le fichier Open project: ayende/Subtext

Méthodes publiques

Méthode Description
GetCategryFromRss ( string url ) : string

Return the value of a url between /category/ and /rss

GetDateFromRequest ( string uri, string archiveText ) : System.DateTime
GetEntryIDFromUrl ( string url ) : int

Gets the entry ID from URL.

RemoveRssSlash ( string url ) : string

Removes the trailing RSS slash if there.

YearFromRequest ( string uri ) : int

Parses out the year from the request.

Private Methods

Méthode Description
CleanEndDateString ( string uri ) : string
CleanStartDateString ( string uri, string archiveText ) : string

Method Details

GetCategryFromRss() public static méthode

Return the value of a url between /category/ and /rss
public static GetCategryFromRss ( string url ) : string
url string
Résultat string

GetDateFromRequest() public static méthode

public static GetDateFromRequest ( string uri, string archiveText ) : System.DateTime
uri string
archiveText string
Résultat System.DateTime

GetEntryIDFromUrl() public static méthode

Gets the entry ID from URL.
Thrown if the specified url is null. Thrown if the specified url does not have an entry id.
public static GetEntryIDFromUrl ( string url ) : int
url string The URI.
Résultat int

RemoveRssSlash() public static méthode

Removes the trailing RSS slash if there.
public static RemoveRssSlash ( string url ) : string
url string URL.
Résultat string

YearFromRequest() public static méthode

Parses out the year from the request.
public static YearFromRequest ( string uri ) : int
uri string The URI.
Résultat int