C# Класс Subtext.Framework.Util.WebPathStripper

Summary description for WebPathStripper.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CleanEndDateString ( string uri ) : string
CleanStartDateString ( string uri, string archiveText ) : string

Описание методов

GetCategryFromRss() публичный статический Метод

Return the value of a url between /category/ and /rss
public static GetCategryFromRss ( string url ) : string
url string
Результат string

GetDateFromRequest() публичный статический Метод

public static GetDateFromRequest ( string uri, string archiveText ) : System.DateTime
uri string
archiveText string
Результат System.DateTime

GetEntryIDFromUrl() публичный статический Метод

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.
Результат int

RemoveRssSlash() публичный статический Метод

Removes the trailing RSS slash if there.
public static RemoveRssSlash ( string url ) : string
url string URL.
Результат string

YearFromRequest() публичный статический Метод

Parses out the year from the request.
public static YearFromRequest ( string uri ) : int
uri string The URI.
Результат int