C# Class SystemEx.Escaping

Contains utility methods for escaping and unescaping strings.
Afficher le fichier Open project: pvginkel/SystemEx

Méthodes publiques

Méthode Description
Base64Decode ( string data ) : byte[]
Base64Encode ( byte data ) : string
HtmlDecode ( string value ) : string

Decodes a string using HTML encoding.

HtmlEncode ( string value ) : string

Encodes a string using HTML encoding.

StringDecode ( string value ) : string
StringEncode ( string value ) : string

Encodes a string using C encoding with " as the quote char.

StringEncode ( string value, bool enclose ) : string
StringEncode ( string value, char quoteChar ) : string

Encodes a string using C encoding with quoteChar as the quote char.

StringEncode ( string value, char quoteChar, bool enclose ) : string

Encodes a string using C encoding with quoteChar as the quote char.

UriDecode ( string value ) : string

Decodes a string using URI encoding.

UriEncode ( string value ) : string

Encodes a string using URI encoding.

UrlDecode ( string value ) : string>.Dictionary
UrlEncode ( string>.Dictionary value ) : string

Private Methods

Méthode Description
Escaping ( ) : System

Method Details

Base64Decode() public static méthode

public static Base64Decode ( string data ) : byte[]
data string
Résultat byte[]

Base64Encode() public static méthode

public static Base64Encode ( byte data ) : string
data byte
Résultat string

HtmlDecode() public static méthode

Decodes a string using HTML encoding.
public static HtmlDecode ( string value ) : string
value string The string to be decoded.
Résultat string

HtmlEncode() public static méthode

Encodes a string using HTML encoding.
public static HtmlEncode ( string value ) : string
value string The string to encode.
Résultat string

StringDecode() public static méthode

public static StringDecode ( string value ) : string
value string
Résultat string

StringEncode() public static méthode

Encodes a string using C encoding with " as the quote char.
public static StringEncode ( string value ) : string
value string The string to encode.
Résultat string

StringEncode() public static méthode

public static StringEncode ( string value, bool enclose ) : string
value string
enclose bool
Résultat string

StringEncode() public static méthode

Encodes a string using C encoding with quoteChar as the quote char.
public static StringEncode ( string value, char quoteChar ) : string
value string The string to encode.
quoteChar char The character used to quote the string. The default /// value for this parameter is ".
Résultat string

StringEncode() public static méthode

Encodes a string using C encoding with quoteChar as the quote char.
public static StringEncode ( string value, char quoteChar, bool enclose ) : string
value string The string to encode.
quoteChar char The character used to quote the string. The default /// value for this parameter is ".
enclose bool
Résultat string

UriDecode() public static méthode

Decodes a string using URI encoding.
public static UriDecode ( string value ) : string
value string The string to decode.
Résultat string

UriEncode() public static méthode

Encodes a string using URI encoding.
public static UriEncode ( string value ) : string
value string The string to encode.
Résultat string

UrlDecode() public static méthode

public static UrlDecode ( string value ) : string>.Dictionary
value string
Résultat string>.Dictionary

UrlEncode() public static méthode

public static UrlEncode ( string>.Dictionary value ) : string
value string>.Dictionary
Résultat string