C# Class System.Net.WebUtility

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static HtmlDecode ( string value ) : string
value string
Résultat string

HtmlDecode() public static méthode

public static HtmlDecode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
Résultat void

HtmlEncode() public static méthode

public static HtmlEncode ( string value ) : string
value string
Résultat string

HtmlEncode() public static méthode

public static HtmlEncode ( string value, TextWriter output ) : void
value string
output System.IO.TextWriter
Résultat void

UrlDecodeToBytes() public static méthode

public static UrlDecodeToBytes ( byte encodedValue, int offset, int count ) : byte[]
encodedValue byte
offset int
count int
Résultat byte[]

UrlEncodeToBytes() public static méthode

public static UrlEncodeToBytes ( byte value, int offset, int count ) : byte[]
value byte
offset int
count int
Résultat byte[]