C# Class Cornerstone.Extensions.StringExtensions

Exibir arquivo Open project: damienhaynes/moving-pictures

Public Methods

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

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
return bool

RemoveDiacritics() public static method

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
return string

ToValidFilename() public static method

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

TrimWhiteSpace() public static method

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