C# Class ImageProcessor.Web.Extensions.StringExtensions

Encapsulates a series of time saving extension methods to the T:System.String class.
Datei anzeigen Open project: JimBobSquarePants/ImageProcessor

Public Methods

Method Description
IsValidVirtualPathName ( this expression ) : bool

Checks the string to see whether the value is a valid virtual path name.

ToMD5Fingerprint ( this expression ) : string

Creates an MD5 fingerprint of the String.

ToPositiveFloatArray ( this expression ) : float[]

Creates an array of floats scraped from the String.

ToPositiveIntegerArray ( this expression ) : int[]

Creates an array of integers scraped from the String.

ToSHA1Fingerprint ( this expression ) : string

Creates an SHA1 fingerprint of the String.

TrimStart ( this target, string trimString ) : string

Trims a specified string from the start of another string.

Method Details

IsValidVirtualPathName() public static method

Checks the string to see whether the value is a valid virtual path name.
public static IsValidVirtualPathName ( this expression ) : bool
expression this The String instance that this method extends.
return bool

ToMD5Fingerprint() public static method

Creates an MD5 fingerprint of the String.
public static ToMD5Fingerprint ( this expression ) : string
expression this The String instance that this method extends.
return string

ToPositiveFloatArray() public static method

Creates an array of floats scraped from the String.
public static ToPositiveFloatArray ( this expression ) : float[]
expression this The String instance that this method extends.
return float[]

ToPositiveIntegerArray() public static method

Creates an array of integers scraped from the String.
public static ToPositiveIntegerArray ( this expression ) : int[]
expression this The String instance that this method extends.
return int[]

ToSHA1Fingerprint() public static method

Creates an SHA1 fingerprint of the String.
public static ToSHA1Fingerprint ( this expression ) : string
expression this The String instance that this method extends.
return string

TrimStart() public static method

Trims a specified string from the start of another string.
public static TrimStart ( this target, string trimString ) : string
target this The target string
trimString string The string to trim from the start
return string