C# Класс SDL.TridionVSRazorExtension.Common.Misc.TextHelper

Показать файл Открыть проект

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

Метод Описание
Cut ( this str, int maxLength ) : string
CutPath ( this path, string separator, int maxLength ) : string
CutPath ( this path, string separator, int maxLength, bool fullLastItem ) : string
GetDomainName ( this url ) : string
GetDomainNameAndPort ( this url ) : string
GetMimeType ( this url ) : string
GetPort ( this url ) : int
IsAllowedMimeType ( this url ) : bool
PlainXml ( this xml ) : string
PrettyXml ( this xml ) : string
RemoveSpaces ( this str ) : string

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

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

public static Cut ( this str, int maxLength ) : string
str this
maxLength int
Результат string

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

public static CutPath ( this path, string separator, int maxLength ) : string
path this
separator string
maxLength int
Результат string

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

public static CutPath ( this path, string separator, int maxLength, bool fullLastItem ) : string
path this
separator string
maxLength int
fullLastItem bool
Результат string

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

public static GetDomainName ( this url ) : string
url this
Результат string

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

public static GetDomainNameAndPort ( this url ) : string
url this
Результат string

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

public static GetMimeType ( this url ) : string
url this
Результат string

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

public static GetPort ( this url ) : int
url this
Результат int

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

public static IsAllowedMimeType ( this url ) : bool
url this
Результат bool

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

public static PlainXml ( this xml ) : string
xml this
Результат string

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

public static PrettyXml ( this xml ) : string
xml this
Результат string

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

public static RemoveSpaces ( this str ) : string
str this
Результат string