HtmlTestEncoder Class

Definition

Encoder used for unit testing.

public ref class HtmlTestEncoder sealed : System::Text::Encodings::Web::HtmlEncoder
public sealed class HtmlTestEncoder : System.Text.Encodings.Web.HtmlEncoder
type HtmlTestEncoder = class
    inherit HtmlEncoder
Public NotInheritable Class HtmlTestEncoder
Inherits HtmlEncoder
Inheritance
HtmlTestEncoder

Constructors

HtmlTestEncoder()

Properties

MaxOutputCharactersPerInputCharacter

Methods

Encode(ReadOnlySpan<Char>, Span<Char>, Int32, Int32, Boolean)

Encodes the supplied characters.

(Inherited from TextEncoder)
Encode(String)
Encode(TextWriter, Char[], Int32, Int32)
Encode(TextWriter, String)

Encodes the specified string to a TextWriter object.

(Inherited from TextEncoder)
Encode(TextWriter, String, Int32, Int32)
EncodeUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean)

Encodes the supplied UTF-8 text.

(Inherited from TextEncoder)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindFirstCharacterToEncode(Char*, Int32)
FindFirstCharacterToEncodeUtf8(ReadOnlySpan<Byte>)

Finds the first element in a UTF-8 text input buffer that would be escaped by the current encoder instance.

(Inherited from TextEncoder)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryEncodeUnicodeScalar(Int32, Char*, Int32, Int32)
WillEncode(Int32)

Applies to