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

Afficher le fichier Open project: mvlasenko/TridionVSRazorExtension

Méthodes publiques

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

public static Cut ( this str, int maxLength ) : string
str this
maxLength int
Résultat string

CutPath() public static méthode

public static CutPath ( this path, string separator, int maxLength ) : string
path this
separator string
maxLength int
Résultat string

CutPath() public static méthode

public static CutPath ( this path, string separator, int maxLength, bool fullLastItem ) : string
path this
separator string
maxLength int
fullLastItem bool
Résultat string

GetDomainName() public static méthode

public static GetDomainName ( this url ) : string
url this
Résultat string

GetDomainNameAndPort() public static méthode

public static GetDomainNameAndPort ( this url ) : string
url this
Résultat string

GetMimeType() public static méthode

public static GetMimeType ( this url ) : string
url this
Résultat string

GetPort() public static méthode

public static GetPort ( this url ) : int
url this
Résultat int

IsAllowedMimeType() public static méthode

public static IsAllowedMimeType ( this url ) : bool
url this
Résultat bool

PlainXml() public static méthode

public static PlainXml ( this xml ) : string
xml this
Résultat string

PrettyXml() public static méthode

public static PrettyXml ( this xml ) : string
xml this
Résultat string

RemoveSpaces() public static méthode

public static RemoveSpaces ( this str ) : string
str this
Résultat string