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\-_.!~*'()\\;/?:@&=$,\[\]]");
Datei anzeigen Open project: jbruening/YamlSerializer-Fork

Public Methods

Method 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 method

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

UriEscapeForTag() public static method

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

UriUnescape() public static method

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