C# Class SDL.TridionVSRazorExtension.Common.Misc.TextHelper

显示文件 Open project: mvlasenko/TridionVSRazorExtension

Public Methods

Method Description
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

Method Details

Cut() public static method

public static Cut ( this str, int maxLength ) : string
str this
maxLength int
return string

CutPath() public static method

public static CutPath ( this path, string separator, int maxLength ) : string
path this
separator string
maxLength int
return string

CutPath() public static method

public static CutPath ( this path, string separator, int maxLength, bool fullLastItem ) : string
path this
separator string
maxLength int
fullLastItem bool
return string

GetDomainName() public static method

public static GetDomainName ( this url ) : string
url this
return string

GetDomainNameAndPort() public static method

public static GetDomainNameAndPort ( this url ) : string
url this
return string

GetMimeType() public static method

public static GetMimeType ( this url ) : string
url this
return string

GetPort() public static method

public static GetPort ( this url ) : int
url this
return int

IsAllowedMimeType() public static method

public static IsAllowedMimeType ( this url ) : bool
url this
return bool

PlainXml() public static method

public static PlainXml ( this xml ) : string
xml this
return string

PrettyXml() public static method

public static PrettyXml ( this xml ) : string
xml this
return string

RemoveSpaces() public static method

public static RemoveSpaces ( this str ) : string
str this
return string