C# Class Temp.UriQueryUtility

Helpers for encoding, decoding, and parsing URI query components.
显示文件 Open project: anurse/ReviewR

Public Methods

Method Description
UrlDecode ( string str ) : string
UrlDecodeToBytes ( byte bytes, int offset, int count ) : byte[]
UrlEncode ( string str ) : string
UrlEncodeToBytes ( byte bytes, int offset, int count ) : byte[]

Private Methods

Method Description
HexToInt ( char h ) : int
IntToHex ( int n ) : char
IsUrlSafeChar ( char ch ) : bool
UrlDecodeInternal ( byte bytes, int offset, int count ) : byte[]
UrlDecodeInternal ( string value, Encoding encoding ) : string
UrlEncode ( byte bytes, int offset, int count ) : byte[]
UrlEncode ( byte bytes, int offset, int count, bool alwaysCreateNewReturnValue ) : byte[]
ValidateUrlEncodingParameters ( byte bytes, int offset, int count ) : bool

Method Details

UrlDecode() public static method

public static UrlDecode ( string str ) : string
str string
return string

UrlDecodeToBytes() public static method

public static UrlDecodeToBytes ( byte bytes, int offset, int count ) : byte[]
bytes byte
offset int
count int
return byte[]

UrlEncode() public static method

public static UrlEncode ( string str ) : string
str string
return string

UrlEncodeToBytes() public static method

public static UrlEncodeToBytes ( byte bytes, int offset, int count ) : byte[]
bytes byte
offset int
count int
return byte[]