C# Class System.Net.WebUtility

Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
HtmlDecode ( string value ) : string
HtmlDecode ( string value, TextWriter output ) : void
HtmlEncode ( string value ) : string
HtmlEncode ( string value, TextWriter output ) : void
UrlDecodeToBytes ( byte encodedValue, int offset, int count ) : byte[]
UrlEncodeToBytes ( byte value, int offset, int count ) : byte[]

Private Methods

Method Description
ConvertSmpToUtf16 ( uint smpChar, char &leadingSurrogate, char &trailingSurrogate ) : void
GetEncodedBytes ( byte originalBytes, int offset, int count, byte expandedBytes ) : void
GetNextUnicodeScalarValueFromUtf16Surrogate ( char &pch, int &charsRemaining ) : int
HexToInt ( char h ) : int
HtmlDecode ( string value, StringBuilder output ) : void
HtmlEncode ( string value, int index, StringBuilder output ) : void
IndexOfHtmlEncodingChars ( string s, int startPos ) : int
IntToHex ( int n ) : char
IsUrlSafeChar ( char ch ) : bool
StringRequiresHtmlDecoding ( string s ) : bool
UrlDecode ( string encodedValue ) : string
UrlDecodeInternal ( byte bytes, int offset, int count ) : byte[]
UrlDecodeInternal ( string value, Encoding encoding ) : string
UrlEncode ( string value ) : string
ValidateUrlEncodingParameters ( byte bytes, int offset, int count ) : bool

Method Details

HtmlDecode() public static method

public static HtmlDecode ( string value ) : string
value string
return string

HtmlDecode() public static method

public static HtmlDecode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
return void

HtmlEncode() public static method

public static HtmlEncode ( string value ) : string
value string
return string

HtmlEncode() public static method

public static HtmlEncode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
return void

UrlDecodeToBytes() public static method

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

UrlEncodeToBytes() public static method

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