Method | Description | |
---|---|---|
AddDashes ( this pascalCasedWord ) : string |
Add dashes to a pascal-cased string
|
|
AddUnderscores ( this pascalCasedWord ) : string |
Add underscores to a pascal-cased string
|
|
GetNameVariants ( this name, |
Return possible variants of a name for name matching.
|
|
HasValue ( this input ) : bool |
Check that a string is not null or empty
|
|
HtmlAttributeEncode ( this input ) : string | ||
HtmlDecode ( this input ) : string | ||
HtmlEncode ( this input ) : string | ||
IsUpperCase ( this inputString ) : bool |
Checks to see if a string is all uppper case
|
|
MakeInitialLowerCase ( this word ) : string |
Convert the first letter of a string to lower case
|
|
Matches ( this input, string pattern ) : bool |
Checks a string to see if it matches a regex
|
|
ParseJsonDate ( this input, |
Parses most common JSON date formats
|
|
RemoveSurroundingQuotes ( this input ) : string |
Remove leading and trailing " from a string
|
|
RemoveUnderscoresAndDashes ( this input ) : string |
Remove underscores from a string
|
|
ToCamelCase ( this lowercaseAndUnderscoredWord, |
Converts a string to camel case
|
|
ToPascalCase ( this lowercaseAndUnderscoredWord, |
Converts a string to pascal case
|
|
ToPascalCase ( this text, bool removeUnderscores, |
Converts a string to pascal case with the option to remove underscores
|
|
UrlDecode ( this input ) : string | ||
UrlEncode ( this input ) : string |
Uses Uri.EscapeDataString() based on recommendations on MSDN http://blogs.msdn.com/b/yangxind/archive/2006/11/09/don-t-use-net-system-uri-unescapedatastring-in-url-decoding.aspx
|
Method | Description | |
---|---|---|
ExtractDate ( string input, string pattern, |
||
ParseFormattedDate ( string input, |
public static AddDashes ( this pascalCasedWord ) : string | ||
pascalCasedWord | this | String to convert |
return | string |
public static AddUnderscores ( this pascalCasedWord ) : string | ||
pascalCasedWord | this | String to convert |
return | string |
public static GetNameVariants ( this name, |
||
name | this | String to convert |
culture | The culture to use for conversion | |
return | IEnumerable |
public static HasValue ( this input ) : bool | ||
input | this | String to check |
return | bool |
public static HtmlAttributeEncode ( this input ) : string | ||
input | this | |
return | string |
public static HtmlDecode ( this input ) : string | ||
input | this | |
return | string |
public static HtmlEncode ( this input ) : string | ||
input | this | |
return | string |
public static IsUpperCase ( this inputString ) : bool | ||
inputString | this | String to check |
return | bool |
public static MakeInitialLowerCase ( this word ) : string | ||
word | this | String to convert |
return | string |
public static Matches ( this input, string pattern ) : bool | ||
input | this | String to check |
pattern | string | Pattern to match |
return | bool |
public static ParseJsonDate ( this input, |
||
input | this | JSON value to parse |
culture | ||
return | System.DateTime |
public static RemoveSurroundingQuotes ( this input ) : string | ||
input | this | String to parse |
return | string |
public static RemoveUnderscoresAndDashes ( this input ) : string | ||
input | this | String to process |
return | string |
public static ToCamelCase ( this lowercaseAndUnderscoredWord, |
||
lowercaseAndUnderscoredWord | this | String to convert |
culture | ||
return | string |
public static ToPascalCase ( this lowercaseAndUnderscoredWord, |
||
lowercaseAndUnderscoredWord | this | String to convert |
culture | ||
return | string |
public static ToPascalCase ( this text, bool removeUnderscores, |
||
text | this | String to convert |
removeUnderscores | bool | Option to remove underscores |
culture | ||
return | string |
public static UrlDecode ( this input ) : string | ||
input | this | |
return | string |
public static UrlEncode ( this input ) : string | ||
input | this | |
return | string |