C# Class Netduino.WebServer.Core.Extensions.StringExtensions

Show file Open project: martinbuberl/Netduino

Public Methods

Method Description
Contains ( this s, char c ) : bool
Contains ( this s, string value ) : bool
EndsWith ( this s, string value ) : bool
IsNullOrEmpty ( this s ) : bool
IsWhiteSpace ( this c ) : bool

Determines whether a character is whitespace.

PadLeft ( this s, int count, char pad ) : string
PadRight ( this s, int count, char pad ) : string
Replace ( this s, char oldChar, char newChar ) : string
Replace ( this s, string oldValue, string newValue ) : string
StartsWith ( this s, string value ) : bool

Method Details

Contains() public static method

public static Contains ( this s, char c ) : bool
s this
c char
return bool

Contains() public static method

public static Contains ( this s, string value ) : bool
s this
value string
return bool

EndsWith() public static method

public static EndsWith ( this s, string value ) : bool
s this
value string
return bool

IsNullOrEmpty() public static method

public static IsNullOrEmpty ( this s ) : bool
s this
return bool

IsWhiteSpace() public static method

Determines whether a character is whitespace.
public static IsWhiteSpace ( this c ) : bool
c this
return bool

PadLeft() public static method

public static PadLeft ( this s, int count, char pad ) : string
s this
count int
pad char
return string

PadRight() public static method

public static PadRight ( this s, int count, char pad ) : string
s this
count int
pad char
return string

Replace() public static method

public static Replace ( this s, char oldChar, char newChar ) : string
s this
oldChar char
newChar char
return string

Replace() public static method

public static Replace ( this s, string oldValue, string newValue ) : string
s this
oldValue string
newValue string
return string

StartsWith() public static method

public static StartsWith ( this s, string value ) : bool
s this
value string
return bool