JavaScriptTestEncoder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
JavaScriptEncoder used for unit testing. This encoder does not perform any encoding and should not be used in application code.
public ref class JavaScriptTestEncoder : System::Text::Encodings::Web::JavaScriptEncoder
public class JavaScriptTestEncoder : System.Text.Encodings.Web.JavaScriptEncoder
type JavaScriptTestEncoder = class
inherit JavaScriptEncoder
Public Class JavaScriptTestEncoder
Inherits JavaScriptEncoder
- Inheritance
Constructors
JavaScriptTestEncoder() |
Properties
MaxOutputCharactersPerInputCharacter |
Gets the maximum number of characters that this encoder can generate for each input code point. |
Methods
Encode(ReadOnlySpan<Char>, Span<Char>, Int32, Int32, Boolean) |
Encodes the supplied characters. (Inherited from TextEncoder) |
Encode(String) |
Encodes the supplied string and returns the encoded text as a new string. |
Encode(TextWriter, Char[], Int32, Int32) |
Encodes characters from an array and writes them to a TextWriter object. |
Encode(TextWriter, String, Int32, Int32) |
Encodes a substring and writes it to a TextWriter object. |
Encode(TextWriter, String) |
Encodes the specified string to a TextWriter object. (Inherited from TextEncoder) |
EncodeUtf8(ReadOnlySpan<Byte>, Span<Byte>, Int32, Int32, Boolean) |
Encodes the supplied UTF-8 text. (Inherited from TextEncoder) |
FindFirstCharacterToEncode(Char*, Int32) |
Finds the index of the first character to encode. |
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) |
TryEncodeUnicodeScalar(Int32, Char*, Int32, Int32) |
Encodes a Unicode scalar value and writes it to a buffer. |
WillEncode(Int32) |
Determines if a given Unicode scalar value will be encoded. |