Modifier

Partager via


TextEncoderSettings Class

Definition

Represents a filter that allows only certain Unicode code points.

public ref class TextEncoderSettings
public class TextEncoderSettings
type TextEncoderSettings = class
Public Class TextEncoderSettings
Inheritance
TextEncoderSettings

Remarks

The source code for this type is available in the System.Text.Encodings.Web project on GitHub. Unit tests that can also serve as code examples are found in the System.Text.Encodings.Web/tests folder on GitHub.

Constructors

TextEncoderSettings()

Instantiates an empty filter (allows no code points through by default).

TextEncoderSettings(TextEncoderSettings)

Instantiates a filter by cloning the allowed list of another TextEncoderSettings object.

TextEncoderSettings(UnicodeRange[])

Instantiates a filter where only the character ranges specified by allowedRanges are allowed by the filter.

Methods

AllowCharacter(Char)

Allows the character specified by character through the filter.

AllowCharacters(Char[])

Allows all characters specified by characters through the filter.

AllowCodePoints(IEnumerable<Int32>)

Allows all code points specified by codePoints.

AllowRange(UnicodeRange)

Allows all characters specified by range through the filter.

AllowRanges(UnicodeRange[])

Allows all characters specified by ranges through the filter.

Clear()

Resets this object by disallowing all characters.

Equals(Object)

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

(Inherited from Object)
ForbidCharacter(Char)

Disallows the character character through the filter.

ForbidCharacters(Char[])

Disallows all characters specified by characters through the filter.

ForbidRange(UnicodeRange)

Disallows all characters specified by range through the filter.

ForbidRanges(UnicodeRange[])

Disallows all characters specified by ranges through the filter.

GetAllowedCodePoints()

Gets an enumerator of all allowed code points.

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)

Applies to