C# Класс 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\-_.!~*'()\\;/?:@&=$,\[\]]");
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

UriEscape() публичный статический Метод

Escape the string in URI encoding format.
public static UriEscape ( this s ) : string
s this String to be escaped.
Результат string

UriEscapeForTag() публичный статический Метод

Escape the string in URI encoding format.
public static UriEscapeForTag ( this s ) : string
s this String to be escaped.
Результат string

UriUnescape() публичный статический Метод

Unescape the string escaped in URI encoding format.
public static UriUnescape ( this s ) : string
s this String to be unescape.
Результат string