C# Class System.Yaml.StringUriEncodingExtention

Add string class two methods: .UriEscape(), .UriUnescape() Charset that is not escaped is represented NonUriChar member. NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
Afficher le fichier Open project: jbruening/YamlSerializer-Fork

Méthodes publiques

Méthode Description
UriEscape ( this s ) : string

Escape the string in URI encoding format.

UriEscapeForTag ( this s ) : string

Escape the string in URI encoding format.

UriUnescape ( this s ) : string

Unescape the string escaped in URI encoding format.

Method Details

UriEscape() public static méthode

Escape the string in URI encoding format.
public static UriEscape ( this s ) : string
s this String to be escaped.
Résultat string

UriEscapeForTag() public static méthode

Escape the string in URI encoding format.
public static UriEscapeForTag ( this s ) : string
s this String to be escaped.
Résultat string

UriUnescape() public static méthode

Unescape the string escaped in URI encoding format.
public static UriUnescape ( this s ) : string
s this String to be unescape.
Résultat string