C# Class Cornerstone.Extensions.StringExtensions

Afficher le fichier Open project: damienhaynes/moving-pictures

Méthodes publiques

Méthode Description
IsNullOrWhiteSpace ( this self ) : bool

Indicates whether a specified string is null, empty, or consists only of white-space characters.

RemoveDiacritics ( this self ) : string

Translates characters to their base form. ( ë/é/è -> e)

source: http://blogs.msdn.com/michkap/archive/2007/05/14/2629747.aspx

ToValidFilename ( this self ) : string

Converts the string so it can be safely used as a filename.

TrimWhiteSpace ( this self ) : string

Replaces multiple white-spaces with one space

Method Details

IsNullOrWhiteSpace() public static méthode

Indicates whether a specified string is null, empty, or consists only of white-space characters.
public static IsNullOrWhiteSpace ( this self ) : bool
self this a string
Résultat bool

RemoveDiacritics() public static méthode

Translates characters to their base form. ( ë/é/è -> e)
source: http://blogs.msdn.com/michkap/archive/2007/05/14/2629747.aspx
public static RemoveDiacritics ( this self ) : string
self this
Résultat string

ToValidFilename() public static méthode

Converts the string so it can be safely used as a filename.
public static ToValidFilename ( this self ) : string
self this
Résultat string

TrimWhiteSpace() public static méthode

Replaces multiple white-spaces with one space
public static TrimWhiteSpace ( this self ) : string
self this
Résultat string